Appium 仪器在启动时崩溃

也许有人可以帮助我。

当appium尝试运行应用程序时,屏幕会在应用程序启animation面中闪烁,就好像appium试图多次启动应用程序一样。 这种行为在模拟器和真实设备上都会发生。

我设置启用我的iOS设备UI Autimation,但是当我尝试启动检查器我有这个问题:

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 (eg 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} 

应用程序的forms是.ipa

谢谢,最好的问候。

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

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

如果您使用iOS模拟器,请执行以下操作…

Appium中 ,转到开发人员设置 ,检查客户服务器标志,并在文本框中input-native-instruments-lib

现在启动Appium服务器。

希望这可以帮助!

BlockquoteTarget无法运行:debuggingcom.myapp.iphone的权限被拒绝。 应用程序必须使用开发标识(例如iOS开发人员)进行签名。 大段引用

你应该给你的开发人员身份,同时创build.ipa …

如果你是通过terminal创buildipa文件,你可以按照给定的链接[博客]: Xcode的“build立和存档”从命令行

我也努力解决这个问题,并发现你需要在你的iDevice开发者选项中启用UI自动化

如何启用UI自动化1.closuresiDevice,2.然后将其连接到运行Xcode 3的Mac上,然后重新开启以显示Developer选项。 4.点击开发人员选项并启用UI自动化

在我的情况下,下面的命令使我的生活地狱:

 rm -rf $HOME/Library/Developer/Xcode/iOS\ DeviceSupport/* 

所以不要将其添加到构build步骤。

解决这个问题:重启设备>运行Xcode>连接设备>构build并运行应用程序>停止并退出Xcode

现在validation启动应用程序,而不会崩溃仪器。