React Nativeで、以下コマンドで、iOSシミュレータを起動して実行しようとしらエラーが出た。
エラーの内容は以下の通り。
The following build commands failed:
Analyze /{プロジェクトのパス}/AwesomeProject/node_modules/react-native/React/CxxUtils/RCTFollyConvert.mm normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
Unable to lookup in current state: Shutdown
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at Promise.then (/{プロジェクトのパス}/AwesomeProject/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
Xcodeで、下のスクショのように設定したらOKだった。
参考
https://stackoverflow.com/questions/37461703/print-entry-cfbundleidentifier-does-not-exist
コメント