React-Native App未安装在IOS模拟器中

时间:2018-11-05 18:59:13

标签: ios react-native simulator

已经尝试过这些React-Native App doesn't install in IOS simulator

我正在尝试运行react-native run-ios。每次出现以下错误:

Error: Command failed: /usr/libexec/PlistBuddy -c 
Print:CFBundleIdentifier build/Build/Products/Debug- 
iphonesimulator/rnCourse.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

at checkExecSyncError (child_process.js:602:13)
at Object.execFileSync (child_process.js:622:13)
at Promise.then (/Users/lucas/Documents/ReactC/rnCourse/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
at <anonymous>

这是我当前的Info.plist

enter image description here

1 个答案:

答案 0 :(得分:0)

此错误来自与该项目没有关联的任何开发人员帐户。您可以通过在Xcode中打开项目并在“常规”标签的“签名”部分分配一个小组来解决此问题。

enter image description here