这是按预期工作,应用程序安装在模拟器上.
但是,手动启动应用程序或使用xcrun simctl启动启动com.company.MyApp失败.退回错误:
An error was encountered processing the command
(domain=FBSOpenApplicationErrorDomain,code=1): The operation Couldn’t
be completed. (FBSOpenApplicationErrorDomain error 1.)
该应用程序从Xcode导出(请注意,从Xcode运行应用程序或从其源代码重新构建应用程序不是有责任的解决方案).
这不是应用程序特定的,因为任何以这种方式安装的应用程序都会出现相同的错误.
系统日志报告相同的错误,但有一些其他信息.
com.apple.CoreSimulator.SimDevice.CA35ED48-DDAA-4CF0-8C69-C206CC55A6EB.launchd_sim[4200]
(UIKitApplication:com.company.MyApp[0xe9ec][4281]): Program specified
by service does not contain one of the requested architectures: RSpringBoard[4217]: Unable to get pid for
‘UIKitApplication:com.company.MyApp[0xe9ec]’: No such process (err 3)SpringBoard[4217]: Bootstrapping Failed for
SpringBoard[4217]: Application
‘UIKitApplication:com.company.MyApp[0xe9ec]’ exited voluntarily.SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you
want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE
environmental variable.SpringBoard[4217]: CGContextTranslateCTM: invalid context 0x0. If you
want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE
environmental variable.SpringBoard[4217]: CGContextRestoreGState: invalid context 0x0. If you
want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE
environmental variable.SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you
want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE
environmental variable.com.apple.CoreSimulator.SimDevice.CA35ED48-DDAA-4CF0-8C69-C206CC55A6EB.launchd_sim[4200]
(UIKitApplication:com.company.MyApp[0xc82f][4282]): Program specified
by service does not contain one of the requested architectures: RSpringBoard[4217]: Unable to get pid for
‘UIKitApplication:com.company.MyApp[0xc82f]’: No such process (err 3)SpringBoard[4217]: Bootstrapping Failed for
SpringBoard[4217]: Application
‘UIKitApplication:com.company.MyApp[0xc82f]’ exited voluntarily.
架构误差变化. R,f等
造成这个问题的原因是什么?我该怎么解决?