Appium [的iOS]仪器在启动时崩溃 [英] Appium [iOS] Instruments crashed on startup

查看:301
本文介绍了Appium [的iOS]仪器在启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许有人能帮助我。

当appium尝试运行应用程序时,屏幕闪烁与应用程序的启动画面,仿佛appium尝试启动应用程序多次。这种行为既发生在模拟器和真实的设备。

我将让我的iOS设备的用户界面Autimation,但是当我尝试启动检查我有这个问题:

 信息:[调试] [INST STDERR] 2015年11月5日15:11:05.082的仪器[1495:39489] WebKit的线程冲突 - 从辅助线程初次使用的WebKit。
信息:[调试] [INST STDERR] 2015年11月5日15:11:06.049的仪器[1495:39460]试图改变视界,同时脱离错误:无法启动Appium会议上,犯错是:错误:仪器在启动时崩溃信息:[调试] [INST STDERR] 2015年11月5日15:11:06.049的仪器[1495:39462]试图改变视界,同时脱离
仪器跟踪错误:目标无法运行:允许调试com.myapp.iphone被拒绝。该应用程序必须用发展的标识(例如iOS开发)签署。
信息:[IOS_SYSLOG_ROW] 11月5日15时11分04秒的测试功能的iPod com.apple.xpc.launchd [1](UIKitApplication:com.myapp.iphone [0xe163] [607])LT;注意计算值:服务退出由于信号:死亡人数:9
信息:[调试] [INSTSERVER]仪器与code 253退出
信息:[调试] Killall仪器
信息:[调试]仪器在启动时崩溃
信息:[调试]我们超过了允许的手段来成功启动的重试次数;发射失败
信息:[调试]停止的iOS日志采集
信息:[调试]复位没有设置,而不是结束SIM卡或清理应用程序状态
信息:[调试]清理appium会议
信息:[调试]错误:仪器在启动时崩溃
    在[目标对象] .Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:440:31)
    在[目标对象]<&匿名GT; (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:353:12)
    在ChildProcess.emit(events.js:110:17)
    在Process.ChildProcess._handle.onexit(child_process.js:1074:12)
信息:[调试]响应客户端的错误:{身份:33,价值:{消息:一个新的会话无法建立。(原来的错误:仪器在启动时崩溃),origValue 仪器在启动时崩溃},的sessionId:空
信息:LT; - POST / WD /集线器/会话500 33841.937毫秒 - 182}

应用是的.ipa形式

谢谢,
最好的问候。


解决方案

 目标无法运行:允许调试com.myapp.iphone被拒绝。
该应用程序必须用发展的标识(例如iOS开发)签署。

您的应用程序应该与开发人员密钥签名。 点击查看文档

Maybe somebody can help me.

When appium tries to run application, the screen flashes with app splash screen, as if appium tries to launch app multiple times. This behaviour happens both on simulator and real device.

I set enable on my iOS devices UI Autimation, but when i try start inspector i have this problem:

info: [debug] [INST STDERR] 2015-11-05 15:11:05.082 instruments[1495:39489] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-11-05 15:11:06.049 instruments[1495:39460] Attempting to change event horizon while disengage

error: Failed to start an Appium session, err was: Error: Instruments crashed on startup

info: [debug] [INST STDERR] 2015-11-05 15:11:06.049 instruments[1495:39462] Attempting to change event horizon while disengage
Instruments Trace Error : Target failed to run: Permission to debug com.myapp.iphone was denied. The app must be signed with a development identity (e.g. iOS Developer).
info: [IOS_SYSLOG_ROW ] Nov  5 15:11:04 tests-iPod com.apple.xpc.launchd[1] (UIKitApplication:com.myapp.iphone[0xe163][607]) <Notice>: Service exited due to signal: Killed: 9
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: [debug] Error: Instruments crashed on startup
    at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:440:31)
    at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:353:12)
    at ChildProcess.emit (events.js:110:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null
info: <-- POST /wd/hub/session 500 33841.937 ms - 182}

Application is in form of .ipa

Thanks, Best regards.

解决方案

Target failed to run: Permission to debug com.myapp.iphone was denied. 
The app must be signed with a development identity (e.g. iOS Developer).

You application should be signed with developers key. Click here for documentation

这篇关于Appium [的iOS]仪器在启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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