本文介绍了Appium,仪器在启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
限时送ChatGPT账号..当我将 Xcode 从 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
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
...
提前致谢
推荐答案
确保在 Appium 的 UI 中的 IOS 平台的高级设置下检查了 Use Native Instruments Library
并确保 Enable UI Automation
设置中的设置--开发人员帮助如评论中所述.
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屋!
更多推荐
[db:关键词]
发布评论