反应本机运行ios构建成功,但安装失败

时间:2018-11-03 12:52:13

标签: ios react-native

几天前,Xcode更新为10.1。当我运行命令时:

react-native run-ios

构建成功,并且模拟器启动,但是该应用未安装。但是它在Xcode.上正常运行,我尝试删除node_modules iOS目录并重新安装,但仍然无法正常工作。

这是日志:

** BUILD SUCCEEDED **


Installing build/Build/Products/Debug-iphonesimulator/SmartAssetsRN.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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


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

    at checkExecSyncError (child_process.js:574:11)
    at Object.execFileSync (child_process.js:592:13)
    at Promise.then (/Users/azderzhou/Program/WebStorm/ReactNative/SmartAssetsRN/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
    at <anonymous>

任何人都可以帮忙吗?

0 个答案:

没有答案