Could not launch the app on Device using .ipa file

2,623 views
Skip to first unread message

kiran

unread,
Dec 9, 2013, 8:44:21 AM12/9/13
to appium-...@googlegroups.com
Hello,

I tried launching .Ipa file on my Iphone and I'm getting the below error. This is the first time i tried on IPA file. Using .app file, I have no issues. Am i passing correct server parameters ?Please help me in this regard. 

Error details: 
You specified a UDID and ipa but did not include the bundle id
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: You specified a UDID and ipa but did not include the bundle id
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: You specified a UDID and ipa but did not include the bundle id)","origValue":"You specified a UDID and ipa but did not include the bundle id"},"sessionId":null}

Here are the server parameters that i had used:

appium -U a39937e0ea4b2b2f66c200d25ca9667b0456d153 --ipa /Users/kiran/Downloads/Thatcher/ProwessiOS-1.0.ipa --app com.thatcher.prowess.alliance --port 4723

Desired Capabilities that I've set:

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(CapabilityType.BROWSER_NAME, "iOS");

capabilities.setCapability(CapabilityType.VERSION, "6.0");    

        capabilities.setCapability(CapabilityType.PLATFORM, "Mac");

capabilities.setCapability("app","/Users/kiran/Downloads/Thatcher/ProwessiOS-1.0.ipa");


wd = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"),

capabilities);


Regards,
Kiran

Jonathan Lipps

unread,
Dec 9, 2013, 12:39:18 PM12/9/13
to kiran, appium-...@googlegroups.com
Right now the way to to do this is:

- pass bundle id of app in via 'app'
- use --ipa server flag to pass in ipa path

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

kiran

unread,
Dec 10, 2013, 3:45:44 AM12/10/13
to Jonathan Lipps, appium-...@googlegroups.com
Thank you Jonathan, for your quick response, As suggested, I have done the changes and this time i get a different error  . Below are the error details and the appium server configuration

Error details : 

info: Welcome to Appium v0.12.0 (REV a9d21807874190ae6d19f8251375cfe4da7b2ae5)
info: Appium REST http interface listener started on 0.0.0.0:4723
   info  - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"com.thatcher.prowess.alliance","browserName":"iOS","version":"6.0"}}
info: App is an iOS bundle, will attempt to run as pre-existing
info: Creating new appium session c5a36720-3268-4644-9408-0b3d14931e2e
info: Removing any remaining instruments sockets
info: Cleaned up instruments socket /tmp/instruments_sock
info: Cleaning up any tracedirs
info: No tracedirs to clean up
info: Localizable.strings is not currently supported when using real devices.
info: Not setting device type since we're connected to a device
info: Starting iOS device log capture via idevicesyslog
info: Installing ipa found at /Users/kiran/Downloads/Thatcher/ProwessiOS-1.0.ipa
info: Couldn't find ideviceinstaller, trying built-in
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Command failed: dyld: Library not loaded:@executable_path/../lib/libimobiledevice.3.dylib
  Referenced from: /usr/local/lib/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
  Reason: image not found

info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib\n  Referenced from: /usr/local/lib/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller\n  Reason: image not found\n)","killed":false,"code":null,"signal":"SIGTRAP","origValue":"Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib\n  Referenced from: /usr/local/lib/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller\n  Reason: image not found\n"},"sessionId":null}
POST /wd/hub/session 500 2344ms - 656b

Appium server params :

appium -U a39937e0ea4b2b2f66c200d25ca9667b0456d153 --ipa /Users/kiran/Downloads/Thatcher/ProwessiOS-1.0.ipa --port 4723

Webdriver capabilities:

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(CapabilityType.BROWSER_NAME"iOS");

capabilities.setCapability(CapabilityType.VERSION"6.0");  

        capabilities.setCapability(CapabilityType.PLATFORM"Mac");

  capabilities.setCapability("app","com.thatcher.prowess.alliance");


Regards,

Kiran

--
Regards,
Kiran K

Jonathan Lipps

unread,
Dec 10, 2013, 1:01:19 PM12/10/13
to kiran, appium-...@googlegroups.com
what's your system configuration? maybe libimobiledevice isn't working for your system.

to work around this, install and configure ideviceinstaller and put it on your PATH; appium will then use that rather than its built-in ideviceinstaller, which looks like it's not working.

kiran

unread,
Dec 11, 2013, 12:07:41 AM12/11/13
to Jonathan Lipps, appium-...@googlegroups.com
Thank you very much Jonathan for your guidance. I installed libimobiledevice and was able to launch the app on my device. but suddenly the app closes giving the below error. 

I understand that the app needs to be signed by developer. But I have received the .ipa file from the development team with valid provisional certificate and got it installed on my Iphone but still, im getting this error. Could you please suggest if need to check for any specific provisioning profile so that i can talk with my dev team.

Error Details :
info: Attempting to run app on real device with UDID a39937e0ea4b2b2f66c200d25ca9667b0456d153
info: Spawning instruments with command: /Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin/instruments -t /Volumes/Xcode/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w a39937e0ea4b2b2f66c200d25ca9667b0456d153 com.thatcher.prowess.alliance -e UIASCRIPT /usr/local/lib/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/
info: And extra without-delay env: {}
info: And launch timeout: 90000ms
info: [INST STDERR] 2013-12-11 10:19:32.168 instruments[1444:707] Permission to debug com.thatcher.prowess.alliance was denied.  The app must be signed with a development identity (e.g. iOS Developer).

info: [INST STDERR] 2013-12-11 10:19:32.171 instruments[1444:707] Recording cancelled : At least one target failed to launch; aborting run

info: [INST STDERR] Instruments Trace Error : Error Domain=com.apple.instruments Code=1 "Error Starting Recording" UserInfo=0x7fec2eb26980 {NSLocalizedDescription=Error Starting Recording, NSLocalizedRecoverySuggestion=At least one target failed to launch; aborting run}
Instruments Trace Error : Failed to start trace.

Regards,
Kiran
--
Regards,
Kiran K

Jonathan Lipps

unread,
Dec 11, 2013, 12:52:42 AM12/11/13
to kiran, appium-...@googlegroups.com
is it a provisioning profile you have installed in xcode?

kiran

unread,
Dec 11, 2013, 11:08:28 AM12/11/13
to Jonathan Lipps, appium-...@googlegroups.com
No, the profile is installed on my device. 

Sent from my iPad

Jonathan Lipps

unread,
Dec 11, 2013, 12:21:05 PM12/11/13
to kiran, appium-...@googlegroups.com
Dunno then. You might want to follow up with apple support since the error is coming from Instruments.

kiran

unread,
Dec 12, 2013, 5:16:03 AM12/12/13
to Jonathan Lipps, appium-...@googlegroups.com
Thank you very much Jonathan for your support.The issue was with the profile that I had installed is a distribution profile and finally got the developer profile installed and I'm able to run appium tests on the device :)
--
Regards,
Kiran K

Senthil kumar Kasi

unread,
May 21, 2014, 5:01:32 AM5/21/14
to appium-...@googlegroups.com, Jonathan Lipps
Hi Kiran,

Can you help me to run the ipa file on real device?? , Actually , i can run the application on simulator using appium.. If i run the ipa file on real device on appium 1.0.0 , i m getting error below,

error: Could not determine your device from Appium arguments or desired capabilities. Please make sure to specify the 'deviceName' capability

in appium 0.18 , app installed in devices , but app could not launched, If possible can you share your ideas, step by step how to run appium test on real device and wt are the perquisite required for run yes on real devices.. We have iOS development certificate also.. Thanks in advance 

Regards,
Senthil

Isaac Murchie

unread,
May 21, 2014, 2:02:44 PM5/21/14
to Senthil kumar Kasi, appium-...@googlegroups.com, Jonathan Lipps
Can you send the full Appium server log so we can see how it is configured?

Thanks,
Isaac.


For more options, visit https://groups.google.com/d/optout.

Nitika Gupta

unread,
Jun 6, 2014, 4:21:28 AM6/6/14
to appium-...@googlegroups.com, jli...@gmail.com
Hi All,

Can someone please help me. I am facing issue in working on real device.

I have installed .ipa on my ipad , ran appium server, provided desired capabilities .

It is saying No device id or app. This is really killing me. please help

Nitika Gupta

unread,
Jun 6, 2014, 4:21:47 AM6/6/14
to appium-...@googlegroups.com

Nitika Gupta

unread,
Jun 6, 2014, 4:23:26 AM6/6/14
to appium-...@googlegroups.com
Hi All,

Please help in running on real device.

I have install .ipa from itunes to my device.appium server on, desired capabilities set.

how to solve below issue:

No device id or app,. not installing to real device


On Monday, December 9, 2013 7:14:21 PM UTC+5:30, kiran wrote:

kiran

unread,
Jun 6, 2014, 6:10:57 AM6/6/14
to Nitika Gupta, appium-...@googlegroups.com
Nithika is your device detected by your mac,? Does the ipa have a valid developer prifile?
 From xode » instruments check if the device is detected and perform a basic recording on the app that u installed. if. U r able to record Your device is good for runnint appium tests  Talk tour dev team to get this done

Share the desired capabilities that u have configured

Kiran

--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/B-JAr_Z3v_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from my Ipad
Reply all
Reply to author
Forward
0 new messages