我的團隊正在使用React Native構建我們的第一個iOS應用程序。出於某種原因,僅在我的Mac上運行react-native run-ios
後,構建失敗。自從我們將Facebook身份驗證與react-native-fbsdk
相加後,這一直髮生。Facebook SDK導致React Native構建失敗
我們都運行node -v 7.0和最新版本的Xcode。我甚至嘗試刪除本地回購,並將其克隆回來。作爲一個實驗,我的團隊的另一位成員在本地刪除了他的回購,將其克隆回來,並能夠使所有工作都能正常進行。我們並排坐在一起,做了完全相同的步驟,它爲他工作,但不是我。
下面是錯誤消息我收到我的終端:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/philmok/js_projects/pLot/ios/build/Build/Intermediates/RCTFBSDK.build/Debug-iphonesimulator/RCTFBSDK.build/Objects-normal/x86_64/RCTFBSDKGraphRequestManager.o RCTFBSDK/core/RCTFBSDKGraphRequestManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/pLot.app
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/pLot.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
每答案上this question,我曾嘗試運行react-native upgrade
。這將允許構建完成,但它會阻止Facebook身份驗證正常工作。
確保使用這個: https://developers.facebook.com/docs/ios/ – plmok61
你應該在android中做什麼? –
@ShariqMusharaf不確定,這是iOS特定的。我還沒有試過它的Android –