gpt4 book ai didi

xcode - 在模拟器中手动安装的应用程序在加载时崩溃

转载 作者:行者123 更新时间:2023-12-03 14:54:11 25 4
gpt4 key购买 nike

我正在安装 MyApp在 iOS 模拟器(Xcode 7、iOS 9)上使用 xcrun simctl install booted MyPath/MyApp.app .

这按预期工作,应用程序安装在模拟器上。

但是,手动或使用 xcrun simctl launch booted 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: R

SpringBoard[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.

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.

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: R

SpringBoard[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.


architectures错误会改变变量。 R、f 等。

造成这个问题的原因是什么?我该如何解决?

最佳答案

我有同样的问题,但使用 Xamarin。在 Visual Studio 中,我通过转到 iOS 项目属性并在“iOS 构建”下将“支持的体系结构”从“i386”更改为“i386 + x86_64”来解决它。

希望你能适应 XCode。

关于xcode - 在模拟器中手动安装的应用程序在加载时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32905869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com