React-native-fbsdk导致CFBundleIdentifier DNE错误

时间:2017-06-30 21:24:16

标签: ios react-native react-native-fbsdk

每次我安装&在任何react-native项目中链接react-native-fbsdk,运行react-native run-ios时出现以下错误:

** BUILD SUCCEEDED **

The following commands produced analyzer issues:
    Analyze {project-dir}/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
    Analyze {project-dir}/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 commands with analyzer issues)

Installing build/Build/Products/Debug-iphonesimulator/{App-Name}.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{App-Name}/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

我已按照react-native-fbsdk README

的说明操作

我已按照IOS Getting Started Guide

的说明操作

我创建的任何项目在安装&之前运行react-native run-ios时都能正常运行。链接react-native-fbsdk。

以下是我正在使用的以下软件包版本:

npm - 4.6.1
react-native - 0.45.1
react-native-fbsdk - 0.6.0

我最初使用的是react-native-fbsdk@0.6.1,但似乎0.6.1可能导致了这个问题,所以我将其更改为0.6.0。

我试图创建许多全新的/新鲜的'Hello World'项目并完全安装react-native-fbsdk多次,但无济于事,我尝试了几乎所有可通过Google搜索找到的解决方案: react-native CFBundleIdentifier doesn't existreact-native-fbsdk CFBundleIdentifier doesn't exist, 或其他一些变体。

编辑:我可以在ios上运行应用程序,通过在xcode中构建它;但是,我想摆脱上述错误,以免在发布期间或安装任何新软件包时导致任何未来的错误。

0 个答案:

没有答案