我的团队正在使用 React Native 构建我们的第一个 iOS 应用程序。出于某种原因,仅在我的 Mac 上,运行后构建失败react-native run-ios
。自从我们使用react-native-fbsdk
.
我们都在运行 node -v 7.0 和最新版本的 Xcode。我什至尝试在本地删除 repo 并将其克隆回来。作为一个实验,我团队的另一名成员在本地删除了他的 repo,将其克隆回来,并且能够让一切正常运行。我们坐在一起,做了完全相同的步骤,这对他有效,但对我无效。
以下是我在终端中收到的错误消息:
** 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
根据这个问题的答案,我试过跑步react-native upgrade
。这将允许构建完成,但会阻止 Facebook 身份验证工作。