Hi,
Im facing this problem when i try to run my automated test and the app is not yet installed on the iPhone device.
Log:
info: [debug] Attempting to run app on iPhone de Mobile IOS (9.0.2)
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 "iPhone de Mobile IOS (9.0.2)" /var/folders/zp/ktqx7d6960d1t5s5bb0wlmrdytb_zm/T/1151011-64375-1hrk8c3/Payload/MyApp.app -e UIASCRIPT "/Users/user/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [debug] [INST STDERR] 2015-11-11 17:35:35.280 instruments[64493:321783] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-11-11 17:35:39.744 instruments[64493:321783] Attempting to change event horizon while disengage
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.myApp.myApp'
info: [debug] [INST STDERR] 2015-11-11 17:35:39.745 instruments[64493:321730] Attempting to change event horizon while disengage
My dependencies:
capabilities.setCapability("deviceName","iPhone de Mobile IOS");
capabilities.setCapability("platformVersion", "9.0.2");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("bundleId", "com.MyApp.MyApp");
capabilities.setCapability("app","/Users/user/Desktop/MyApp 2015-11-11 17-27-58/MyApp.ipa");
The thing is that, if I compile the app directly to my device using Xcode, and then run the automated test, the app opens correctly.
Someone could help me with this please?
Thanks.