Error Installing App on Device

Hello Corona Community,

The other day, I successfully installed my app on my phone.

However, today, when I tried installing my (same) app on my wife’s phone, an error occurred and the installation was unsuccessful.

I registered my wife’s phone in the developer portal, but used the same provisioning profile, app ID, and certificate.

Do I have to create a new provisioning profile, app ID, and certificate to install my app on a second device? Even though it’s the same app?

Any help/input is appreciated as I am clueless how to fix it.

Thanks in advance! 

Below is the error message:

ideviceinstaller encountered an error installing the app:

 

Installing ‘myApp.app’ on myWifesPhone …

ERROR: Install failed. Got error “ApplicationVerificationFailed” with code 0xe8008015: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.u1B8Cz/extracted/myApp.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

Uploading myApp.app package contents… DONE.

Installing ‘(null)’

Install: CreatingStagingDirectory (5%)

Install: ExtractingPackage (15%)

Install: InspectingPackage (20%)

Install: TakingInstallLock (20%)

Install: PreflightingApplication (30%)

Install: InstallingEmbeddedProfile (30%)

Install: VerifyingApplication (40%)

DId you rebuild the certificate chain after adding the new device?

DId you rebuild the certificate chain after adding the new device?

What exactly do you mean by “rebuild certificate chain” ?

*UPDATED*

Your wife’s phone needs to be in the certificate chain.

So, if you didn’t add it you need to.  Then re-export the certs and install them on your machine.

We’re talking about the certs here: https://developer.apple.com/account/ios/certificate

  1. Add wife’s device to your devices list.

  2. Select certificate you are building, Edit, then Regenerate.

  3. Download and then double-click certificate.

  4. Quit Corona.

  5. Start Corona and build.

( Tip : If this doesn’t work, try restarting your machine then try #5 again.  My machine used to sometimes be reluctant to add the cert to Corona.)

steps.jpg

@RG

Thank you so much! Your solution worked perfectly!

I just have one comment though–What your described (i.e. steps 1~5) are NOT mentioned in the Provisioning Guide.

Something this critical should be explained in detail. That’s what guides are supposed to be for. 

You might want to update the guide to include this. Just a thought.

Anyway, thanks a million!

In theory you should just add the new device in the developer portal and then regenerate the provisioning profile, download it then either using Xcode or copying the file to ~/Library/MobileDevice/Provisioning Profiles and restart Corona.

Rob

DId you rebuild the certificate chain after adding the new device?

DId you rebuild the certificate chain after adding the new device?

What exactly do you mean by “rebuild certificate chain” ?

*UPDATED*

Your wife’s phone needs to be in the certificate chain.

So, if you didn’t add it you need to.  Then re-export the certs and install them on your machine.

We’re talking about the certs here: https://developer.apple.com/account/ios/certificate

  1. Add wife’s device to your devices list.

  2. Select certificate you are building, Edit, then Regenerate.

  3. Download and then double-click certificate.

  4. Quit Corona.

  5. Start Corona and build.

( Tip : If this doesn’t work, try restarting your machine then try #5 again.  My machine used to sometimes be reluctant to add the cert to Corona.)

steps.jpg

@RG

Thank you so much! Your solution worked perfectly!

I just have one comment though–What your described (i.e. steps 1~5) are NOT mentioned in the Provisioning Guide.

Something this critical should be explained in detail. That’s what guides are supposed to be for. 

You might want to update the guide to include this. Just a thought.

Anyway, thanks a million!

In theory you should just add the new device in the developer portal and then regenerate the provisioning profile, download it then either using Xcode or copying the file to ~/Library/MobileDevice/Provisioning Profiles and restart Corona.

Rob