首页 > 解决方案 > React-Native App 未安装在 IOS 模拟器中

问题描述

已经尝试过那些没有在 IOS 模拟器中安装的 React-Native App

我正在尝试运行 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

在此处输入图像描述

标签: iosreact-nativesimulator

解决方案


此错误来自没有与项目关联的开发者帐户。您可以在 Xcode 中通过打开项目并在 General 选项卡的 Signing 部分中分配一个团队来解决此问题。

在此处输入图像描述


推荐阅读