打印:條目,“:CFBundleIdentifier”,不存在當(dāng)我運(yùn)行react-native run-ios構(gòu)建成功但我得到下面的錯誤。我已經(jīng)檢查了所有地方,但似乎沒有任何工作。sudo在命令前面使用也無濟(jì)于事。我使用的是Xcode 7.3,react-native-cli:0.2.0,react-native:0.24.1,node v5.11.0。=== BUILD TARGET mobileTests OF PROJECT mobile WITH CONFIGURATION Release ===Check dependencies** BUILD SUCCEEDED **Installing build/Build/Products/Debug-iphonesimulator/mobile.appAn error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):Failed to install the requested applicationAn application bundle was not found at the provided path.Provide a valid path to the desired application bundle.Print: Entry, ":CFBundleIdentifier", Does Not Exist/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/done.js:10
throw err;
^Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/mobile.app/Info.plistPrint: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:470:13)
at Object.execFileSync (child_process.js:490:13)
at _runIOS (runIOS.js:91:34)
at runIOS.js:24:5
at tryCallTwo (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:45:5)
at doResolve (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:200:13)
at new Promise (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:66:3)
at Array.runIOS (runIOS.js:23:10)
at Object.run (/Users/astiefel/workspace/bosspayments/mobile/node_modules/react-native/local-cli/cli.js:86:13)
at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7)
3 回答

手掌心
TA貢獻(xiàn)1942條經(jīng)驗 獲得超3個贊
在Xcode中打開項目
如果Xcode> 9運(yùn)行命令react-native upgrade
(這會覆蓋所有iOS配置,請謹(jǐn)慎使用?。?/p>
然后
1.轉(zhuǎn)到文件 - >項目設(shè)置
2.單擊“高級”按鈕
3.選擇“自定義”,然后在下拉菜單中選擇“相對于工作區(qū)”
4.將“構(gòu)建/產(chǎn)品”更改為“構(gòu)建/構(gòu)建/產(chǎn)品”
5.點擊完成,完成
- 3 回答
- 0 關(guān)注
- 879 瀏覽
添加回答
舉報
0/150
提交
取消