我在IOS
项目中构建React Native
应用时遇到了这样的错误:
遇到处理命令(domain = NSPOSIXErrorDomain, code = 2)打印:输入,":CFBundleIdentifier",不存在
我在GitHub中读到关于那个issues的帖子,但是没有找到可以解决我问题的解决方案。任何想法如何解决它?
答案 0 :(得分:0)
原因可能是您有一些来自以前版本的版本文件导致了问题。
清除ios/build/your_project
以触发新的构建
答案 1 :(得分:0)
就我而言,原因是-构建文件名为MyMob.app
,但它尝试安装到模拟器的应用程序是mymob.app
。
我通过更改mymob.xcscheme:46
中的行来解决了
BuildableName = "MyMob.app"
BuildableName = "mymob.app"
日志为
iinfo Installing "build/mymob/Build/Products/Debug-iphonesimulator/mymob.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.
info Launching "com.mymob.app"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=4):
The request to open "com.mymob.app" failed.
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn't be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"
Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"