几天前,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>
任何人都可以帮忙吗?