Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Oct 9, 2019
2 parents 1ef4942 + 24e021f commit 8ef262c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* **iOS:** Update Facebook iOS SDK v5.7.0 ([Facebook iOS SDK changelog](https://github.com/facebook/facebook-objc-sdk/blob/master/CHANGELOG.md) | Released: September 30 2019)
* **Android:** Set per default usage of Facebook Android SDK v5.5.2 ([Facebook Android SDK changelog](https://github.com/facebook/facebook-android-sdk/blob/master/CHANGELOG.md) | Released: October 4 2019)

## Docs

* Document two known errors related to Cocoapods, Facebook iOS SDK and their related solutions

<a name="6.1.0"></a>
# [6.1.0](https://github.com/jeduan/cordova-plugin-facebook4/releases/tag/v6.1.0)

Expand Down
22 changes: 21 additions & 1 deletion docs/ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,28 @@ If building your project in Xcode, you need to open `YourProject.xcworkspace` (n

You can list the pod dependencies in your Cordova iOS project by installing [cocoapods-dependencies](https://github.com/segiddins/cocoapods-dependencies):

```
```bash
sudo gem install cocoapods-dependencies
cd platforms/ios/
pod dependencies
```

#### Error: pod: Command failed with exit code 31

If you install the plugin and face the error `Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 31`, it probably means that your local Pod repo is not up-to-date. In order to solve the problem, prior the installation, run th following command in your platform to update your Pod repo:

```bash
pod update
```

#### 'FBSDKCoreKit/FBSDKCoreKit.h' file not found

If you are using Cordova iOS < v5, you might face the error `'FBSDKCoreKit/FBSDKCoreKit.h' file not found`. To overcome this problem, edit the `plugin.xml` of the plugin in order to fetch de Facebook iOS SDK by adding the following `framework` references:

```
<framework src="FBSDKCoreKit" type="podspec" spec="X.Y.Z" />
<framework src="FBSDKLoginKit" type="podspec" spec="X.Y.Z" />
<framework src="FBSDKShareKit" type="podspec" spec="X.Y.Z" />
```

Replace `X.Y.Z` with the Facebook iOS SDK and remove and add your platform again.

0 comments on commit 8ef262c

Please sign in to comment.