我刚刚更新到Xcode 12,现在我的react native项目(在更新之前正在运行)将无法运行并输出此错误
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.
info Launching "app.lfgo.release"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=4):
The request to open "app.lfgo.release" failed.
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application info provider (FBSApplicationLibrary) returned nil for "app.lfgo.release"
Application info provider (FBSApplicationLibrary) returned nil for "app.lfgo.release"
答案 0 :(得分:5)
升级到Xcode 12时,我也遇到了同样的事情。帮助(如果使用了锁定文件)将@ react-native-community / cli-platform-ios安装为所有@react-native-community/cli-platform-ios
中的devDep和凹凸版本yarn.lock文件中的条目添加到4.13.0
答案 1 :(得分:0)
不知道为什么要为我修复它或其他相关问题,但是...
使用npx react-native run-ios
对我抛出此错误,但是当我通过xcode构建时,它工作正常。对我来说没有任何意义,但哦,好吧...