I’m getting a spawn ENOENT (33) error, after upgrading to appium 1.2.2 from appium 1.1 where this was working. Here are the logs.
IOS - stdout: info: --> POST /wd/hub/session {“desiredCapabilities”:{“appium-version”:“1.1”,“platformVersion”:“7.0”,“browserName”:“safari”,“platformName”:“iOS”,“udid”:“23b8e657f90ea4464adcf13bea8d0a90112209b2”,“deviceName”:“iphone”,“platform”:“MAC”}}
IOS - stdout: info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version, platform
IOS - stdout: info: [debug] Configuring Safari session
IOS - stdout: info: [debug] Using local .zip from command line: /usr/local/lib/node_modules/appium/build/SafariLauncher/SafariLauncher.zip
IOS - stdout: info: [debug] Copying local zip to tmp dir
IOS - stdout: info: [debug] /usr/local/lib/node_modules/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/appium-app.zip
IOS - stdout: info: [debug] Unzipping /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/appium-app.zip
IOS - stdout: info: [debug] Testing zip archive: /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/appium-app.zip
IOS - stdout: info: [debug] Zip archive tested clean
IOS - stdout: info: [debug] Unzip successful
IOS - stdout: info: [debug] Using locally extracted app: /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/SafariLauncher.app
IOS - stdout: info: [debug] Creating new appium session 4110b0f3-a2ef-48c1-a22b-accb211b3953
IOS - stdout: info: [debug] Removing any remaining instruments sockets
IOS - stdout: info: [debug] Cleaned up instruments socket /tmp/instruments_sock
IOS - stdout: info: [debug] Setting Xcode folder
IOS - stdout: info: [debug] Setting Xcode version
IOS - stdout: info: [debug] Setting iOS SDK Version
IOS - stdout: info: [debug] iOS SDK Version set to 7.1
IOS - stdout: info: [debug] Detecting automation tracetemplate
IOS - stdout: info: [debug] Not auto-detecting udid, running on sim
IOS - ERROR ERROR ERROR: error: Could not parse plist file (as binary) at /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/SafariLauncher.app/en.lproj/Localizable.strings
IOS - stdout: info: Will try to parse the plist file as XML
IOS - ERROR ERROR ERROR: parseFileSync()
is deprecated. Use parseStringSync()
instead.
IOS - ERROR ERROR ERROR: error: Could not parse plist file (as XML) at /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/SafariLauncher.app/en.lproj/Localizable.strings
IOS - stdout: warn: Could not parse app Localizable.strings
IOS - stdout: info: [debug] Not setting locale because we’re using a real device
IOS - stdout: info: [debug] Creating instruments
IOS - stdout: info: [debug] Preparing uiauto bootstrap
IOS - stdout: info: [debug] Dynamic bootstrap dir:
IOS - stdout: info: [debug] Dynamic env:
IOS - stdout: info: [debug] Dynamic bootstrap code:
IOS - stdout: info: [debug] Dynamic bootstrap path:
IOS - stdout: info: [debug] Reusing dynamic bootstrap:
IOS - stdout: info: [debug] Not setting iOS and app preferences since we’re on a real device
IOS - stdout: info: [debug] Starting iOS device log capture via deviceconsole
IOS - ERROR ERROR ERROR: error: iOS log capture failed: spawn ENOENT
IOS - stdout: info: [debug] Cleaning up appium session
IOS - ERROR ERROR ERROR: error: Failed to start an Appium session, err was: Error: spawn ENOENT
IOS - stdout: info: [debug] Error: spawn ENOENT
at errnoException (child_process.js:998:11)
at Process.ChildProcess._handle.onexit (child_process.js:789:34)
IOS - stdout: info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: spawn ENOENT)”,“code”:“ENOENT”,“errno”:“ENOENT”,“syscall”:“spawn”,“origValue”:“spawn ENOENT”},“sessionId”:null}
IOS - stdout: info: <-- POST /wd/hub/session 500 220.656 ms - 197
IOS - stdout: info: [debug] Not setting device type since we’re connected to a device
IOS - stdout: info: [debug] Getting bundle ID from app
IOS - stdout: info: [debug] Parsed app Info.plist (as binary)
IOS - stdout: info: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 23b8e657f90ea4464adcf13bea8d0a90112209b2 --bundle com.bytearc.SafariLauncher
IOS - stdout: info: [debug] Installing app using cmd: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap install --id 23b8e657f90ea4464adcf13bea8d0a90112209b2 --bundle “/var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/SafariLauncher.app”
IOS - stdout: info: [debug] Not starting command proxy since we’re expecting that Instruments won’t be able to talk to it anyway
IOS - stdout: info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
IOS - stdout: info: Launching instruments
IOS - stdout: info: [debug] Attempting to run app on real device with UDID 23b8e657f90ea4464adcf13bea8d0a90112209b2
IOS - stdout: 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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 23b8e657f90ea4464adcf13bea8d0a90112209b2 /var/folders/nx/2963dx3n3090gnt8_ztnvht00000gp/T/11489-2068-1inq9a7/SafariLauncher.app -e UIASCRIPT /Users/ultilab/Library/Application Support/appium/bootstrap/bootstrap-d1d9fbb0b8e3788e.js -e UIARESULTSPATH /tmp/appium-instruments
IOS - stdout: info: [debug] And extra without-delay env: {}
IOS - stdout: info: [debug] And launch timeouts (in ms): {“global”:90000}
IOS - stdout: info: --> GET /wd/hub/status {}
IOS - stdout: info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}
IOS - stdout: info: <-- GET /wd/hub/status 200 1.760 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}