plm*_*k61 4 facebook ios react-native react-native-fbsdk
我的团队正在使用 React Native 构建我们的第一个 iOS 应用程序。由于某种原因,仅在我的 Mac 上,运行后构建失败react-native run-ios。自从我们添加 Facebook 身份验证以来,这种情况就一直在发生react-native-fbsdk。
我们都运行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
Run Code Online (Sandbox Code Playgroud)
根据这个问题的答案,我尝试过跑步react-native upgrade。这将允许构建完成,但会阻止 Facebook 身份验证工作。
小智 5
确保您已下载用于fb登录的FBSDK。将其放入您的文档文件夹中,然后在 xcode 中打开您的项目。单击左侧菜单中的项目并选择构建设置选项卡,将“框架路径”指定为文档中 FBSDK 的路径。
| 归档时间: |
|
| 查看次数: |
2640 次 |
| 最近记录: |