We (and I imagine many developers) distribute our builds using testflight and jenkins, which builds the app into ipa files. Has anyone successfully used appium with an ipa file?
I've been experimenting with this, you can unarchive an ipa file into a directory labeled "Payload" that contains the .app archive. However, when I point my app to it, it fails with the error below.
It works when I build the app myself in xcode, but I'm hoping to avoid that since we've already got a build system in place.
error: Instruments socket client never checked in; timing out
info: Instruments exited with code 1 and trace dir undefined
error: Instruments socket client never checked in; timing out
info: Instruments exited with code 1 and trace dir undefined
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"/Users/vic/Downloads/Payload-1/
testapp.app","browserName":"iOS","version":"6.0"}}
info: Using local app from desiredCaps: /Users/vic/Downloads/Payload-1/
testapp.appinfo: Creating new appium session 6767149a-5d6a-4ae3-9d5e-a4a9c39432ff
info: Cleaned up instruments socket /tmp/instruments_sock
info: Forcing use of iphone
info: Parsed app Info.plist
info: Wrote new app Info.plist with device type
info: instruments is: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock
info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Users/vic/appium/app/uiauto/Automation.tracetemplate /Users/vic/Downloads/Payload-1/
testapp.app -e UIASCRIPT /Users/vic/appium/app/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/7fa656c5-0e71-4f99-86b5-45f04ac8551d
info: And extra without-delay env: {}
info: [INST STDERR] posix spawn failure; aborting launch (binary == /Users/vic/Downloads/Payload-1/
testapp.app/testapp).
info: [INST STDERR] 2013-05-02 12:21:00.226 instruments[14101:1603] Recording cancelled : At least one target failed to launch; aborting run
Instruments Trace Error : Failed to start trace.
info: [INSTSERVER] Instruments exited with code 253
error: Instruments did not launch successfully, failing session
error: Failed to start an Appium session, err was: Instruments did not launch successfully--please check your app paths or bundle IDs and try again
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":"6767149a-5d6a-4ae3-9d5e-a4a9c39432ff"}
POST /wd/hub/session 500 341ms - 270
info: Clearing out appium devices