Appium, Instruments зависали при запуске

Когда я обновил Xcode с версии 6.4 до версии 7.2, моя автоматизация пользовательского интерфейса Appium перестала работать, и инструменты перестали работать.

Аппиум: 1.4.13

Xкод: 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
...

заранее спасибо


person B.S.    schedule 25.02.2016    source источник
comment
1. Можете ли вы получить доступ к instruments другими способами, кроме скрипта appium? 2. Также убедитесь, что вы установили флажок Использовать Native Instruments Library в настройках Advance для платформы IOS в пользовательском интерфейсе Appium. 3. Включите настройку UI Automation в настройках -- для разработчиков.   -  person Naman    schedule 25.02.2016
comment
Благодарю вас! Забыл про Native Instruments Library, ++ вам   -  person B.S.    schedule 26.02.2016


Ответы (1)


Убедитесь, что вы отметили Use Native Instruments Library в дополнительных настройках для платформы IOS в пользовательском интерфейсе Appium и убедитесь, что Enable UI Automation установлен в настройках - разработчик помогает, как указано в комментариях.

person Naman    schedule 26.02.2016