0

每次我在任何 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 入门指南中的说明进行操作

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,但无济于事,我尝试了几乎所有您可以通过谷歌搜索找到的解决方案: react-native CFBundleIdentifier doesn't exist、、 react-native-fbsdk CFBundleIdentifier doesn't exist或其他变体其中 2 个。

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

4

0 回答 0