iOS application fails deploying to iOS device

Mobile Testing, Android App Testing.
TonyB
Posts: 4
Joined: Mon May 11, 2015 6:48 am

iOS application fails deploying to iOS device

Post by TonyB » Mon May 11, 2015 8:11 am

Hi there

New to Ranorex and Test Automation. I have just downloaded the trial version of Ranorex (Need to prove to the bosses before they will consider buying) and have been trying to set up a iOS app and keep getting the below error:

System.Exception: Failed to install the iOS app 'C:\Users\TonyandHolly\Documents\Ranorex\InstrumentedIpa\APPNAME-instrumented.ipa' to device 'DEVICENUMBER'. Additional details: APPLICATION VERIFICATION FAILED: Bad code signing. Consider that you are using a valid IPA package with valid signing data (p12, mobileprovision).
at Ranorex.Plugin.Mobile.Tools.Ios.IosToolRunner.InstallApp(String udid, String archivePath)
at Ranorex.Plugin.Mobile.Device.MobileDevice.DeployApplication(String binaryPackagePath, String appId, DeployProcessChangedDelegate processChangedHandler)
at Ranorex.Controls.Instrumentation.Workers.IosWorker.Deploy(String targetIpaPath, Version appMinimumOsVersion, IList`1 supportedCpuTypes)
at Ranorex.Controls.Instrumentation.IosResultPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

The developers here are saying it is because Ranorex doesn't support Swift? The app instruments fine, but fails upon deploying to the device (iPhone5s)

Checked:
1) The iOS version matches the devices OS version
2) IPA supports the device architecture
3) IPA is not already instrumented with static Ranorex.lib
4) Not using an IPA backup

Developers have insisted they have done everything possible...any help??

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: iOS application fails deploying to iOS device

Post by Support Team » Tue May 12, 2015 2:54 pm

Hi TonyB,

In general, Ranorex should work with Swift apps, so this shouldn't be the problem.

Are you sure the iPhone you are using was added to the developer provision profile as well?
Did you instrument the IPA by using the instrumentation wizard or directly in XCode?
May I also ask you which Ranorex and iOS version you are using and if it would be possible to send us (to [email protected]) the IPA file of your app?
This would allow us to analyze the app directly on our machines and devices.

Thanks,
Markus
.
Image

TonyB
Posts: 4
Joined: Mon May 11, 2015 6:48 am

Re: iOS application fails deploying to iOS device

Post by TonyB » Tue May 12, 2015 7:07 pm

Hi Markus

I have managed to get it working on my personal device (also an iPhone 5s) but just seems to be the work iphone playing up.

Used the Wizard.
IOS 8.3

Could it be that a device must have a SIM card inserted? As that was the only difference between the two devices.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: iOS application fails deploying to iOS device

Post by Support Team » Fri May 15, 2015 4:52 pm

Hi Tony,

No, a SIM is not required.
I would really say this has something to do with the provisioning file, are you really sure the working device was added to the provisioning file?
Could you maybe double check with your development team to make sure this is the case?

Thanks,
Markus
.
Image

Norbertinho
Posts: 1
Joined: Fri Jun 26, 2015 2:01 pm

Re: iOS application fails deploying to iOS device

Post by Norbertinho » Fri Jun 26, 2015 2:03 pm

Hi, I have the same issue. I get the bad code signing issue. I tested with a company iPhone 5 with No SIM,then I used a personal iPhone 6 with SIM,but with the same result. Can you tell me what you mean by adding the device to the provisioning profile?

Cheers,Norbert

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: iOS application fails deploying to iOS device

Post by Support Team » Tue Jun 30, 2015 12:27 pm

Hi Norbert,

Please take a look at the following section of our User Guide, there you can see what is meant with the mobile provisioning profile: Instrumentation and Preparation.

Regards,
Markus
.
Image