Skip to content

Instantly share code, notes, and snippets.

@aluzardo
Created July 12, 2016 09:08
Show Gist options
  • Save aluzardo/85cd5185ffa144a653fb307145d335db to your computer and use it in GitHub Desktop.
Save aluzardo/85cd5185ffa144a653fb307145d335db to your computer and use it in GitHub Desktop.
Appium started recommend by @Asimk21
Last login: Mon Jul 11 12:40:53 on console
➜ ~ appium --default-capabilities "{\"newCommandTimeout\": 30000, \"udid\": \"39d39a8bf0d6635268e5997dae574c04246f5e2b\"}" --port 1234 --bootstrap-port 1236 --webkit-debug-proxy-port 1238 --tmp /tmp/ios/
[Appium] Welcome to Appium v1.5.3 (REV ec2f450b6e9e64e469cc9e7aeaaa418ab82ca607)
[Appium] Non-default server args:
[Appium] port: 1234
[Appium] bootstrapPort: 1236
[Appium] tmpDir: '/tmp/ios/'
[Appium] webkitDebugProxyPort: 1238
[Appium] defaultCapabilities: { newCommandTimeout: 30000,
udid: '39d39a8bf0d6635268e5997dae574c04246f5e2b' }
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] newCommandTimeout: 30000
[Appium] udid: '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[Appium] Appium REST http interface listener started on 0.0.0.0:1234
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"safari","appium-version":"1.5.3","platformName":"iOS","platformVersion":"9.3","deviceName":"iPad 4","udid":"39d39a8bf0d6635268e5997dae574c04246f5e2b","count":1}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"safari","a...
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] browserName: 'safari'
[Appium] appium-version: '1.5.3'
[Appium] platformName: 'iOS'
[Appium] platformVersion: '9.3'
[Appium] deviceName: 'iPad 4'
[Appium] udid: '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[Appium] count: 1
[Appium] newCommandTimeout: 30000
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, count.
[BaseDriver] Session created with session id: c56cb945-8b3d-4b88-8489-0efea0ee2268
[debug] [iOS] Not auto-detecting udid.
[debug] [iOS] Creating iDevice object with udid 39d39a8bf0d6635268e5997dae574c04246f5e2b
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /tmp/ios/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/adolfocabrera/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/Users/adolfocabrera/.nvm/versions/node/v5.11.1/bin/node","commandProxyClientPath":"/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/tmp/ios/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/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js
[debug] [UIAuto] Creating or overwriting dynamic bootstrap: /Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.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 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/ios/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 '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/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/ios/appium-instruments/instrumentscli0.trace -w 39d39a8bf0d6635268e5997dae574c04246f5e2b com.bytearc.SafariLauncher -e UIASCRIPT "/Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js" -e UIARESULTSPATH /tmp/ios/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:21.375 instruments[2871:907847] 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 (60134)
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 '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/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/ios/appium-instruments/instrumentscli0.trace -w 39d39a8bf0d6635268e5997dae574c04246f5e2b com.bytearc.SafariLauncher -e UIASCRIPT "/Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js" -e UIARESULTSPATH /tmp/ios/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:28.775 instruments[2875:908002] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:29.102 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.launchdaemon"; channel canceled <DTXChannel: 0x7ffa83718280>
2016-07-12 11:04:29.102 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7ffa835fa710>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:29.102 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7ffa835fbfc0>
2016-07-12 11:04:29.102 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7ffa835baf40>
2016-07-12 11:04:29.103 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7ffa835f8a70>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:29.103 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7ffa80f17c30>
2016-07-12 11:04:29.103 instruments[2875:908002] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7ffa80c01350>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:29.104 instruments[2875:907973] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7ffa80c05bc0>
Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60134)
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 '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/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/ios/appium-instruments/instrumentscli0.trace -w 39d39a8bf0d6635268e5997dae574c04246f5e2b com.bytearc.SafariLauncher -e UIASCRIPT "/Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js" -e UIARESULTSPATH /tmp/ios/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:35.701 instruments[2879:908066] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:36.396 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.capabilities"; channel canceled <DTXChannel: 0x7fdf85f3bb50>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:36.396 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7fdf85e478d0>
2016-07-12 11:04:36.396 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7fdf85eb0c10>
2016-07-12 11:04:36.397 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7fdf83601750>
2016-07-12 11:04:36.397 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7fdf85e3ced0>
2016-07-12 11:04:36.397 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7fdf85e476a0>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:36.397 instruments[2879:908038] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7fdf85e4b8e0>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:36.398 instruments[2879:908064] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fdf83608a10>
Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60134)
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 '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/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/ios/appium-instruments/instrumentscli0.trace -w 39d39a8bf0d6635268e5997dae574c04246f5e2b com.bytearc.SafariLauncher -e UIASCRIPT "/Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js" -e UIARESULTSPATH /tmp/ios/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:43.132 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.capabilities"; channel canceled <DTXChannel: 0x7ff963667be0>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:43.132 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7ff9634ad6a0>
2016-07-12 11:04:43.132 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7ff9634e1b80>
2016-07-12 11:04:43.133 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7ff9634eda20>
2016-07-12 11:04:43.133 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7ff9634e14b0>
2016-07-12 11:04:43.133 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7ff9634e79d0>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:43.134 instruments[2884:908110] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7ff9636709f0>
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:43.134 instruments[2884:908114] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7ff96366e500>
Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60134)
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 '39d39a8bf0d6635268e5997dae574c04246f5e2b'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/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/ios/appium-instruments/instrumentscli0.trace -w 39d39a8bf0d6635268e5997dae574c04246f5e2b com.bytearc.SafariLauncher -e UIASCRIPT "/Users/adolfocabrera/Library/Application Support/appium/bootstrap/bootstrap-1f95f319c723b673.js" -e UIARESULTSPATH /tmp/ios/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-07-12 11:04:49.815 instruments[2888:908131] 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 (60134)
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/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[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/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/adolfocabrera/.nvm/versions/node/v5.11.1/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[HTTP] <-- POST /wd/hub/session 500 34609 ms - 232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment