【问题标题】:Appium, Instruments crashed on startupAppium,仪器在启动时崩溃
【发布时间】:2016-06-08 13:31:53
【问题描述】:

当我将 Xcode 从 6.4 更新到 7.2 时,我的 Appium UI 自动化停止工作,仪器崩溃了。

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
...

提前致谢

【问题讨论】:

  • 1.您可以通过 appium 脚本以外的方式访问 instruments 吗? 2. 另外请确保您在 Appium 的 UI 中的 IOS 平台的Advance 设置下选中了使用Native Instruments Library。 3.在setting--developer中开启UI Automation设置
  • 谢谢!我忘了“Native Instruments Library”,给你++

标签: ios xcode automation appium


【解决方案1】:

确保您在 Appium 的 UI 中的 IOS 平台的高级设置下选中了 Use Native Instruments Library,并确保设置中的 Enable UI Automation 设置 - 开发人员帮助如 cmets 中所述。

【讨论】:

    猜你喜欢
    • 2015-03-07
    • 2016-02-06
    • 2016-12-09
    • 1970-01-01
    • 2016-04-08
    • 2015-08-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多