instrumenting and deploying iOS with Instrementation Wizard failed

Mobile Testing, Android App Testing.
h.bouroum
Posts: 3
Joined: Fri Aug 02, 2019 1:34 pm

instrumenting and deploying iOS with Instrementation Wizard failed

Post by h.bouroum » Mon Aug 05, 2019 9:41 am

Hi all,

This is my first time to instrument an app on Mobile-iOS and tried several times the instrumentation Wizard .


1- I choose iOS as target technolofy to instrument --> Instrement & deploy custom IPA --> choose the APP --> click on next. Than i get the following Error.

Image


System.NullReferenceException: Object reference not set to an instance of an object.
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.IosSigning.GetBerEncodedSignedCms(Byte[] codeDirDigest)
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.IosSigning.GetCmsBlob(Byte[] codeDirBlob)
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.IosSigning.Sign()
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.BaseSignUnit.Sign()
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.FrameworkSignUnit.Sign()
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.IosSigningService.Sign()
at Ranorex.Plugin.Mobile.Tools.Ios.Instrumentation.IosInstrumentation.StartInstrumentation()
at Ranorex.Plugin.Mobile.Tools.Ios.IosToolRunner.Instrument(IIosOptions options, Action`2 progressCallback, String& instrumentedIpaPath)
at Ranorex.Plugin.Mobile.Tools.Ios.IosToolRunner.Instrument(IOptions options, Action`2 progressCallback, Action`1 msgCallback)
at Ranorex.Plugin.Mobile.RxIntegration.Instrumentation.IosWorker.Run()
at Ranorex.Controls.Instrumentation.IosResultPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

Are there anyone who can help me?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: instrumenting and deploying iOS with Instrementation Wizard failed

Post by Support Team » Mon Aug 05, 2019 7:57 pm

hi h.bouroum,

It appears code signing is failing and this is likely a result of a bad/wrong p12 file, mobileprovision file, or password. Please confirm with your iOS devs your files are correct. If you are able to provide the *.ipa file here or privately, I will be happy to test this with my own code signing files and device to confirm this is the root issue.

I hope this helps!

Regards,
Ned

h.bouroum
Posts: 3
Joined: Fri Aug 02, 2019 1:34 pm

Re: instrumenting and deploying iOS with Instrementation Wizard failed

Post by h.bouroum » Tue Aug 06, 2019 6:27 am

Hello Ned,

Thank you for the reply.

We have corrected the P12 file. we get now another problem, that the device id is not founded in mobileprovision.

Image

Any idee how we can solve it?

h.bouroum
Posts: 3
Joined: Fri Aug 02, 2019 1:34 pm

Re: instrumenting and deploying iOS with Instrementation Wizard failed

Post by h.bouroum » Tue Aug 06, 2019 9:07 am

we work for the first time with Ranorex and our developement team dosent understand why Ranorex decompiles and compiles the app again. However this worked know.
we had deployed the IPA via Appstore and not directly of our devices.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: instrumenting and deploying iOS with Instrementation Wizard failed

Post by Support Team » Tue Aug 06, 2019 4:11 pm

Hi h.bouroum,

I am happy to hear you were able to instrument and deploy your iOS application.

To answer your developers question, we decompile and recompile the application to automatically insert our small automation library which Ranorex uses to communicate with the application, get object recognition, and perform actions (touch, type, validation, et cetera...). Without this, Ranorex would not be able to do any automation in your application due to iOS restrictions.

Alternatively, your iOS developers can manually add the Ranorex libraries to the iOS application themselves if they do not want to use the automatic instrumentation method.

Please let me know if you need any more assistance!

Cheers,
Ned