Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2016 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/32ad690199d5154135c3a4d7d9a5e56b to your computer and use it in GitHub Desktop.
Save anonymous/32ad690199d5154135c3a4d7d9a5e56b to your computer and use it in GitHub Desktop.
Mac-mini-de-admin:appium admin$ node . -U MYUDID --app 'safari'
[Appium] Welcome to Appium v1.5.1 (REV anuberinhexadecimal)
[Appium] Non-default server args:
[Appium] app: 'safari'
[Appium] udid: 'MYUDID'
[Appium] Deprecated server args:
[Appium] --app => --default-capabilities '{"app":"safari"}'
[Appium] -U,--udid => --default-capabilities '{"udid":"MYUDID"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] app: 'safari'
[Appium] udid: 'MYUDID'
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"9.3","bundleId":"MY.BUNDLE.ID","browserName":"Safari","platformName":"iOS","udid":"MYUDID","deviceName":"iPad"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformVersion":"9.3","bundleId":"MY.BUNDLE.ID","browserName":"Safari","platformName":"iOS","udid":"MYUDID...
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] platformVersion: '9.3'
[Appium] bundleId: 'MY.BUNDLE.ID'
[Appium] browserName: 'Safari'
[Appium] platformName: 'iOS'
[Appium] udid: 'MYUDID'
[Appium] deviceName: 'iPad'
[Appium] app: 'safari'
[BaseDriver] Session created with session id: 5bbf28af-ac10-4681-b67a-72cfe424f0f5
[debug] [iOS] Not auto-detecting udid.
[debug] [iOS] Creating iDevice object with udid MYUDID
[debug] [iOS] Checking for presence of SafariLauncher at '/Users/admin/Documents/installations/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app'
[debug] [iOS] SafariLauncher exists
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/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/admin/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Users/admin/Documents/installations/appium/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/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/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js
[debug] [iOS] Running ios real device reset flow
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [iOS] App is not installed. Will try to install the app.
[debug] [iOS] Starting UIAutoClient, and launching Instruments.
[debug] [UIAuto] Instruments socket server started at /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/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 'MYUDID'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/admin/Documents/installations/appium/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 /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments/instrumentscli0.trace -w MYUDID MY.BUNDLE.ID -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js" -e UIARESULTSPATH /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-04-13 12:07:49.039 instruments[2306:222128] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
[debug] [Instruments] [INST STDERR] instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [Instruments] Attempting to launch instruments, this is try #2
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'MYUDID'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/admin/Documents/installations/appium/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 /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments/instrumentscli0.trace -w MYUDID MY.BUNDLE.ID -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js" -e UIARESULTSPATH /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-04-13 12:07:56.535 instruments[2311:222151] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [Instruments] Attempting to launch instruments, this is try #3
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'MYUDID'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/admin/Documents/installations/appium/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 /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments/instrumentscli0.trace -w MYUDID MY.BUNDLE.ID -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js" -e UIARESULTSPATH /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-04-13 12:08:03.106 instruments[2315:222224] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [Instruments] Attempting to launch instruments, this is try #4
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'MYUDID'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/admin/Documents/installations/appium/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 /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments/instrumentscli0.trace -w MYUDID MY.BUNDLE.ID -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js" -e UIARESULTSPATH /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-04-13 12:08:10.085 instruments[2319:222304] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [Instruments] Attempting to launch instruments, this is try #5
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'MYUDID'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/admin/Documents/installations/appium/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 /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments/instrumentscli0.trace -w MYUDID MY.BUNDLE.ID -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-937250fd0c62a1d0.js" -e UIARESULTSPATH /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-04-13 12:08:16.175 instruments[2323:222317] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
[debug] [Instruments] [INST STDERR] instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[Instruments] Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Instruments.launch$ (lib/instruments.js:220:15)
at tryCatch (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)
[Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch]
[MJSONWP] Encountered internal error running command: Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Instruments.launch$ (lib/instruments.js:220:15)
at tryCatch (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/admin/Documents/installations/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/admin/Documents/installations/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)
[HTTP] <-- POST /wd/hub/session 500 42573 ms - 232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment