Skip to content

Instantly share code, notes, and snippets.

@sebv
Created May 8, 2014 19:35
Show Gist options
  • Save sebv/f08962cf3337c65b5a49 to your computer and use it in GitHub Desktop.
Save sebv/f08962cf3337c65b5a49 to your computer and use it in GitHub Desktop.
warn: Could not parse plist file at /tmp/Appium-MobileSafari.app/en.lproj/Localizable.strings
info: Getting list of devices instruments supports
info: Instruments is at: /Applications/Xcode-7.1.app/Contents/Developer/usr/bin/instruments
info: Instruments is at: /Applications/Xcode-7.1.app/Contents/Developer/usr/bin/instruments
info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock
info: Instruments device was changed from:" iPhone - Simulator - iOS 7.1 " to:" iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1"
info: Attempting to run app on iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1
info: Spawning instruments with command: /Applications/Xcode-7.1.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode-7.1.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1 /tmp/Appium-MobileSafari.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments
info: And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd/InstrumentsShim.dylib","LIB_PATH":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd"}
info: And launch timeouts (in ms): {"global":90000}
info: [INST STDERR] 2014-05-09 03:31:13.308 ScriptAgent[4803:2f07] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-05-09 03:31:13.310 ScriptAgent[4803:2f07] CLTilesManagerClient: init
info: [INST STDERR] 2014-05-09 03:31:13.313 ScriptAgent[4803:2f07] CLTilesManagerClient: reconnecting, 0x10a734a40
info: [INST STDERR] 2014-05-09 03:31:13.637 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033113.plist
info: [INST] 2014-05-08 19:31:13 +0000 Start: Bootstrapping uiauto
info: [INST] 2014-05-08 19:31:13 +0000 Start: Got user: baba
info: [INST] 2014-05-08 19:31:13 +0000 Start: Not using settings file.
2014-05-08 19:31:13 +0000 Start: isVerbose:false
info: [INST] 2014-05-08 19:31:13 +0000 Warning: Warn: thrown: VerboseError: Failed executing the command /usr/bin/env node -e "console.log(process.execPath);" (exit code 127)
info: [INST STDERR] 2014-05-09 03:31:15.315 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST STDERR] 2014-05-09 03:31:15.517 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST] 2014-05-08 19:31:15 +0000 Warning: Warn: thrown: VerboseError: Failed executing the command osascript -e 'try
set appiumIsRunning to false
tell application "System Events"
set appiumIsRunning to name of every process contains "Appium"
end tell
if appiumIsRunning then
tell application "Appium" to return node path
end if
end try
return "NULL"' (exit code 1)
info: [INST STDERR] 2014-05-09 03:31:15.664 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST STDERR] 2014-05-09 03:31:15.715 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST] 2014-05-08 19:31:15 +0000 Warning: Warn: thrown: VerboseError: Executing echo $NODE_BIN failed since there was no output
info: [INST STDERR] 2014-05-09 03:31:15.768 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST STDERR] 2014-05-09 03:31:15.794 ScriptAgent[4803:2f07] Log written to /Users/baba/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-09-033115.plist
info: [INST] 2014-05-08 19:31:15 +0000 Warning: Warn: thrown: VerboseError: Failed executing the command which node (exit code 1)
info: [INST] 2014-05-08 19:31:15 +0000 Warning: Warn: thrown: VerboseError: Failed executing the command ls /usr/local/bin/node (exit code 1)
info: [INST] 2014-05-08 19:31:15 +0000 Warning: Warn: thrown: VerboseError: Failed executing the command ls /opt/local/bin/node (exit code 1)
info: [INST] 2014-05-08 19:31:16 +0000 Error: Script threw an uncaught JavaScript error: Could not find node, where is it? on line 153 of env.js
info: [INST] 2014-05-08 19:31:16 +0000 Stopped: Script was stopped by the user
info: [INST] Instruments Trace Complete (Duration : 12.247383s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli0.trace)
info: [INSTSERVER] Instruments exited with code 0
info: Killall instruments
info: Attempting to retry launching instruments, this is retry #1
info: Killall iPhoneSimulator
@sebv
Copy link
Author

sebv commented May 8, 2014

Condition:

  • disabled node (mv /usr/local/bin/node /usr/local/bin/node2)
osascript -e 'try
quote>          set appiumIsRunning to false
quote>   tell application "System Events"
quote>     set appiumIsRunning to name of every process contains "Appium"
quote>   end tell
quote>   if appiumIsRunning then
quote>     tell application "Appium" to return node path
quote>   end if
quote> end try
quote> return "NULL"'
/Applications/Appium.app/Contents/Resources/node/bin/node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment