appium 环境,iOS 真机 测试应用都已准备好, 终端执行 python ***.py,测试 case 都没问题可以正常运行
Jenkins 执行 shell python ***.py 报错 Error launching instruments: Instruments crashed on startup
appium log:
[BaseDriver] The following capabilities were provided, but are not recognized by appium: enabel, userable.
[BaseDriver] Session created with session id: c9110b39-9a66-4676-8338-1a1a1e8a248c
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/yincang/dis.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /tmp/2017620-33330-zi32kf.ab4o39pb9/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /tmp/2017620-33330-zi32kf.ab4o39pb9/appium-app.zip
[BaseDriver] Unzipped local app to '/tmp/2017620-33330-zi32kf.ab4o39pb9/Payload/Aurora.app'
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /tmp/instruments_sock
[debug] [iOS] No language specified. Using default strings
[debug] [iOS] Strings file not found. Looking in 'en.lproj' directory
[iOS] Could not file localizable strings file 'Localizable.strings'!
[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/ssdfds/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
...bug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
[debug] [UIAuto] Dynamic bootstrap path: /Users/sdfsdfd/Library/Application Support/appium/bootstrap/bootstrap-78218e7f1202cddd.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/sdfdsfdf/Library/Application Support/appium/bootstrap/bootstrap-78218e7f1202cddd.js
[debug] [iOS] Reset not set, continuing
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [iOS] Creating iDevice object with udid 12fe8c9b758bce1fd678b861afb0a8b7323297b0
[debug] [iOS] App is installed.
[debug] [iOS] fullReset not requested. No need to install.
[debug] [iOS] Starting UIAutoClient, and launching Instruments.
[debug] [UIAuto] Instruments socket server started at /tmp/instruments_sock
[debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
[debug] [Instruments] Attempting to launch instruments, this is try #1
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '12fe8c9b758bce1fd678b861afb0a8b7323297b0'
[debug] [Instruments] Found Insruments-Without-Delay: /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] 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 12fe8c9b758bce1fd678b861afb0a8b7323297b0 bundleid -e UIASCRIPT "/Users/sdfdsfds/Library/Application Support/appium/bootstrap/bootstrap-78218e7f1202cddd.js" -e UIARESULTSPATH /tmp/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2017-07-20 12:19:48.192 instruments[33343:6341286] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] Instruments exited with code 253
[debug] [Instruments] Attempting to launch instruments, this is try #2
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '12fe8c9b758bce1fd678b861afb0a8b7323297b0'
[debug] [Instruments] Found Insruments-Without-Delay: /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] 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 12fe8c9b758bce1fd678b861afb0a8b7323297b0 bundleid -e UIASCRIPT "/Users/sdfdsfd/Library/Application Support/appium/bootstrap/bootstrap-78218e7f1202cddd.js" -e UIARESULTSPATH /tmp/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2017-07-20 12:19:54.773 instruments[33347:6341554] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] Instruments exited with code 253
Error: write EPIPE
at exports._errnoException (util.js:1018:11)
at WriteWrap.afterWrite (net.js:800:14)
有没有同学遇到这样的问题?