模拟器中手动安装的应用程序在加载时崩溃 [英] Apps manually installed in simulator crashes upon load

查看:236
本文介绍了模拟器中手动安装的应用程序在加载时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm installing MyApp on the iOS simulator (Xcode 7, iOS 9) using xcrun simctl install booted MyPath/MyApp.app.

这可以按预期工作,并且该应用已安装在模拟器上.

This works as expected and the app is installed on the simulator.

但是,手动或使用xcrun simctl launch booted com.company.MyApp启动应用程序失败.回报错误:

However, launching the app either manually or using xcrun simctl launch booted com.company.MyApp fails. Giving back the error:

处理命令时遇到错误 (域= FBSOpenApplicationErrorDomain,代码= 1):该操作无法 完成. (FBSOpenApplicationErrorDomain错误1.)

An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=1): The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)

该应用是从Xcode导出的(请注意,从Xcode运行该应用或从其源代码重新构建该应用不是可靠的解决方案).

The app is exported from Xcode (note that running the app from Xcode or re-building the app from its source code is not a liable solution).

这不是特定于应用程序的,因为以这种方式安装的任何应用程序都会崩溃,并显示相同的错误.

It's not app specific, as any app install in this manner crashes with the same error.

系统日志报告相同的错误,但有一些附加信息.

The system log reports the same error, but with some additional information.

com.apple.CoreSimulator.SimDevice.CA35ED48-DDAA-4CF0-8C69-C206CC55A6EB.launchd_sim [4200] (UIKitApplication:com.company.MyApp [0xe9ec] [4281]):程序已指定 按服务不包含所请求的体系结构之一:R

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]:无法获取的pid 'UIKitApplication:com.company.MyApp [0xe9ec]':没有这样的过程(错误3)

SpringBoard[4217]: Unable to get pid for 'UIKitApplication:com.company.MyApp[0xe9ec]': No such process (err 3)

SpringBoard [4217]:

SpringBoard[4217]: Bootstrapping failed for

SpringBoard [4217]:应用程序 "UIKitApplication:com.company.MyApp [0xe9ec]"是自愿退出的.

SpringBoard[4217]: Application 'UIKitApplication:com.company.MyApp[0xe9ec]' exited voluntarily.

SpringBoard [4217]:CGContextSaveGState:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

SpringBoard [4217]:CGContextTranslateCTM:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

SpringBoard[4217]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

SpringBoard [4217]:CGContextRestoreGState:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

SpringBoard[4217]: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

SpringBoard [4217]:CGContextSaveGState:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

SpringBoard [4217]:CGContextTranslateCTM:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

SpringBoard[4217]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

SpringBoard [4217]:CGContextRestoreGState:无效的上下文0x0.如果你 要查看回溯,请设置CG_CONTEXT_SHOW_BACKTRACE 环境变量.

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]):程序已指定 按服务不包含所请求的体系结构之一:R

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]:无法获取的pid 'UIKitApplication:com.company.MyApp [0xc82f]':没有这样的过程(错误3)

SpringBoard[4217]: Unable to get pid for 'UIKitApplication:com.company.MyApp[0xc82f]': No such process (err 3)

SpringBoard [4217]:

SpringBoard[4217]: Bootstrapping failed for

SpringBoard [4217]:应用程序 "UIKitApplication:com.company.MyApp [0xc82f]"是自愿退出的.

SpringBoard[4217]: Application 'UIKitApplication:com.company.MyApp[0xc82f]' exited voluntarily.

architectures错误更改了变量. R,f等.

The architectures error varies the variable. R, f, etc.

是什么原因导致此问题?我该如何解决?

What's the causing this issue? How may I resolve it?

推荐答案

我遇到了同样的问题,但是使用Xamarin.在Visual Studio中,我通过转到iOS项目属性来解决该问题,并在"iOS Build"下将支持的体系结构"从"i386"更改为"i386 + x86_64".

I had the same problem, but using Xamarin. In Visual Studio I solved it by going to the iOS project properties and under "iOS Build" I changed the "Supported architectures" from "i386" to "i386 + x86_64".

希望您可以使其适应XCode.

Hopefully you can adapt that to XCode.

这篇关于模拟器中手动安装的应用程序在加载时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆