仪器、目标运行失败:遇到远程异常:“无法获取 pid 的任务”
我无法控制构建。我也没有苹果开发者帐户。我可以使用调试/检查/发布版本。运行测试自动化时,我继续遇到此错误:目标运行失败:遇到远程异常:“无法获取 pid 506 的任务”
自动化启动,应用程序打开,然后立即关闭。这是一些控制台输出
Oct 25 09:46:48 iphone com.apple.launchd[1] (UIKitApplication:com.something.dogfood[0xd456][504]) : (UIKitApplication:com.something.dogfood[0xd456]) 已退出: 被杀死: 9
Oct 25 09:46:48 iphone SpringBoard[29] : 应用程序“MyApplicaton”异常退出,信号为 9: Killed: 9
有什么建议吗?
I have no control over the builds. I dont have an apple dev account either. I can use a debug/checked/release build. When running test automation I continue to run into this error: Target failed to run : Remote exception encountered : 'Failed to get task for pid 506'
The automation starts, the application opens and then promptly closes. here is some console output
Oct 25 09:46:48 iphone com.apple.launchd[1] (UIKitApplication:com.something.dogfood[0xd456][504]) : (UIKitApplication:com.something.dogfood[0xd456]) Exited: Killed: 9
Oct 25 09:46:48 iphone SpringBoard[29] : Application 'MyApplicaton' exited abnormally with signal 9: Killed: 9
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Instruments 基本上通过成为应用程序的调试器来完成其工作。有时,在使用 XCode 调试应用程序后,我发现在重新启动设备之前我无法使用 Instruments。
与 XCode 不同,Instruments 可能会混淆两个名称相同但捆绑 ID 不同的应用程序。 (或者可能是相同的名称和相似的捆绑 ID。)当我的设备上有多个版本的应用程序时,我经常需要删除额外的版本才能让 Instruments 连接到正确的应用程序。
因此,请删除应用程序的所有重复项并重新启动设备。
Instruments basically does its work by becoming the debugger for the app. Sometimes after using XCode to debug apps, I find I can't use Instruments until I reboot the device.
Unlike XCode, Instruments can be confused between two apps with the same name, but different bundle IDs. (Or perhaps same name and similar bundle IDs.) When I have multiple versions of an app on a device, I often have to delete the extra to get Instruments to connect to the correct app.
So, delete any duplicates of your app and restart the device.