plmok61 plmok61 - 1 year ago 164
iOS Question

Facebook SDK causes React Native build to fail

My team is building our first iOS app using React Native. For some reason on my Mac only, the build fails after running

react-native run-ios
. This has been happening since we added Facebook authentication with the

We are all running node -v 7.0 and the latest version of Xcode. I have even tried deleting the repo locally and cloning it back down. As an experiment, another member of my team deleted his repo locally, cloned it back down, and was able to get everything working. We sat next to each other and did the exact same steps and it worked for him but not me.

Below is the error message I receive in my terminal:


The following build commands failed:
CompileC /Users/philmok/js_projects/pLot/ios/build/Build/Intermediates/ RCTFBSDK/core/RCTFBSDKGraphRequestManager.m normal x86_64 objective-c
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Per the answer on this question, I have tried running
react-native upgrade
. This will allow the build to complete but it prevents Facebook authentication from working.

Answer Source

Make sure you have downloaded the FBSDK for fb login. Place it in your documents folder and then open your project in xcode. click your project in the left menu and select the build settings tab, give 'framework path' the path to your FBSDK in documents.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download