Am able to run Mobile and Native app on Simulator, but getting error on real device
I have Appium1.3 running from source, ios8.1
I followed instructions from the Appium docs
Here is the stack trace
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Using local app from desired caps: /Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app
info: [debug] Creating new appium session dd2f9e47-253e-444c-a191-f40a2f804ab4
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.0
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] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
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/sujittarun/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/sujittarun/GitHub/Appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/sujittarun/Library/Application Support/appium/bootstrap/bootstrap-3ce8b44a787dfab2.js
info: [debug] Reusing dynamic bootstrap: /Users/sujittarun/Library/Application Support/appium/bootstrap/bootstrap-3ce8b44a787dfab2.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.0.1”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPhoneS”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhoneS (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 ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506
info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Users/sujittarun/GitHub/Appium/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Users/sujittarun/GitHub/Appium/appium/build/fruitstrap/fruitstrap isInstalled --id ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506 --bundle io.appium.TestApp
info: [debug] App is not installed. Will try to install the app.
info: [debug] Installing app using cmd: /Users/sujittarun/GitHub/Appium/appium/build/fruitstrap/fruitstrap install --id ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506 --bundle “/Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app”
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Unable to install [/Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app] to device with id [ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506]. Error [Error: Command failed: ]
info: [debug] Error: Unable to install [/Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app] to device with id [ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506]. Error [Error: Command failed: ]
at /Users/sujittarun/GitHub/Appium/appium/lib/devices/common.js:147:10
at ChildProcess.exithandler (child_process.js:652:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket. (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Unable to install [/Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app] to device with id [ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506]. Error [Error: Command failed: ])”,“origValue”:“Unable to install [/Users/sujittarun/GitHub/Appium/appium/assets/TestApp7/TestApp.app] to device with id [ffeb80d83ee1ff4fcffe91ae9dd6d7aa57018506]. Error [Error: Command failed: ]”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 3150.654 ms - 482