I have tested multiple Devices on Appium 1.3.0 with Xcode6
Error appeared after updating to Xcode6
Testing iPods or iPhones (regardless of iOS version, in my case 7.1 and 8.1) worked all great without any issues.
But as soon as testing gets to iPads Appium throws an Instrument 253 error from Xcode6
Error appears on iOS 7.1 and iOS 8.1
My guess is that the spawning instruments command is not configured right for Xcode6 for iPads. It identifies the real device as an iPad 8.1 Simulator no matter if iOS Version on Device is 7.1 or 8.1.
Even running Appium Server with --native-instruments-lib flag doesn’t help.
Maybe one of you guys can find out more
EDIT:
also enabled UiAutomation in Settings/Developer
Error Trace:
info: Welcome to Appium v1.3.0 (REV f7de192e4a09fdb087ac9e7955f521db630499db)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“fullReset”:true}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“xxx.app”,“platformName”:“iOS”,“deviceName”:“iPad”,“bundleId”:“eu.textunes.XCA–Debug-”,“udid”:“28fa4e293f3277ada76b5480483dd230bdfbeb07”}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session ed0c78c2-cf33-4d03-b3fc-74798f2bee3c
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 8.1
info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/robins/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/Cellar/node/0.10.32/bin/node",“commandProxyClientPath”:"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}
…o: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
info: [debug] Dynamic bootstrap path: /Users/robins/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js
info: [debug] Reusing dynamic bootstrap: /Users/robins/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPad”,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPad (8.1 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid 28fa4e293f3277ada76b5480483dd230bdfbeb07
info: [debug] Couldn’t find ideviceinstaller, trying built-in at /usr/local/lib/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 28fa4e293f3277ada76b5480483dd230bdfbeb07 --bundle eu.textunes.XCA–Debug-
info: [debug] App is installed.
info: [debug] fullReset requested. Forcing app install.
info: [debug] Installing app using cmd: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap install --id 28fa4e293f3277ada76b5480483dd230bdfbeb07 --bundle “/Users/robins/Documents/Eclipse-Projects/XCAiOSSource/XCAiOS/app/XCA (Debug).app”
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 28fa4e293f3277ada76b5480483dd230bdfbeb07
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.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 28fa4e293f3277ada76b5480483dd230bdfbeb07 eu.textunes.XCA–Debug- -e UIASCRIPT “/Users/robins/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
info: Launching instruments