Appium,仪器在启动时崩溃 [英] Appium, Instruments crashed on startup
本文介绍了Appium,仪器在启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我更新了X code来自6.4到7.2我Appium UI自动化不辍,与仪器崩溃。
When I updated Xcode from 6.4 to 7.2 my Appium UI Automation stopped working, with instruments crashing.
Appium:1.4.13
Appium: 1.4.13
X code:7.2
Xcode: 7.2
下面是错误日志:
info: Launching instruments
info: [debug] Attempting to run app on iPhone 6 (8.4)
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 6 (8.4)" /var/folders/23/nmp6lms102vg0s25m1322t400000gp/T/116125-731-112rfi4/Time.app -e UIASCRIPT "/Users/bogdan.shubravyi/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7/InstrumentsShim.dylib","LIB_PATH":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7"}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [debug] [INSTSERVER] Instruments exited with code null
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] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] [INST STDERR] dyld: could not load inserted library '/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7/InstrumentsShim.dylib' because no suitable image found. Did find:
/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7/InstrumentsShim.dylib: mmap() error 1 at address=0x100C77000, size=0x00001000 segment=__TEXT in Segment::map() mapping /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7/InstrumentsShim.dylib
info: [debug] Killall iOS Simulator
info: [debug] Cleaning sim data files
info: node-simctl: Executing: xcrun with args: simctl erase F023F482-F636-4535-B4B8-2F272F799EEF and timeout: 2000
info: [debug] Cleaning app data files
...
在此先感谢
推荐答案
确保您有使用Native Instruments公司库
在Appium的用户界面下IOS平台的高级设置检查并确保启用UI自动化
设置中设置 - 开发商为帮助在评论中提到
Making sure you have Use Native Instruments Library
checked under Advance settings for IOS platform in Appium's UI and ensuring Enable UI Automation
setting in setting--developer helps as mentioned in the comments.
这篇关于Appium,仪器在启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文