No code signature found when install test app into iphone

sdk:2014.2221

 

console log 

Mar 29 14:05:28 Administratorde-iPhone mobile_installation_proxy[3755] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.

Mar 29 14:05:28 Administratorde-iPhone mobile_installation_proxy[3755] <Warning>: LaunchServices: installing app for existing placeholder (null)

Mar 29 14:05:28 Administratorde-iPhone installd[62] <Notice>: 0x483000 handle_install_for_ls: Install of “/var/mobile/Media/PublicStaging/test.app” requested by mobile_installation_proxy

Mar 29 14:05:28 Administratorde-iPhone installd[62] <Notice>: 0x483000 MobileInstallationInstall_Server: Installing app lite-labo-drawing-lessons-v2

Mar 29 14:05:29 Administratorde-iPhone installd[62] <Error>: 0x483000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.YldhFF/test.app/test: 0xe800801c

Mar 29 14:05:29 Administratorde-iPhone installd[62] <Error>: 0x483000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.YldhFF/test.app

Mar 29 14:05:29 Administratorde-iPhone mobile_installation_proxy[3755] <Error>: 0x1d3000 MobileInstallationInstallForLaunchServices: failed with -1

Mar 29 14:05:29 Administratorde-iPhone mobile_installation_proxy[3755] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil

Mar 29 14:05:29 Administratorde-iPhone mobile_installation_proxy[3755] <Error>: 0x1d3000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x1767f420 {Error=ApplicationVerificationFailed, ErrorDetail=-402620388}

Mar 29 14:05:29 Administratorde-iPhone installd[62] <Error>: 0x483000 install_application: Could not preflight application install

Mar 29 14:05:29 Administratorde-iPhone installd[62] <Error>: 0x483000 handle_install_for_ls: API failed

How are you installing it?

Can you post a screen shot of your Corona build screen just before you hit the build button?

Do you have valid keys, certificates, provisioning profiles with your test devices installed, etc?

Thanks

Rob

Hey Rob,

I’m going to hop on board and plead for help as well.  I’ve spent the entire day trying to get this app installed on my iPad (with the hope that my updates worked and then upload to app store).   I have tried every permutation of variables including deleting all certs, all provision profiles (from my Mac and from the developer center).   I have been following the procedure you suggested here:

http://docs.coronalabs.com/guide/distribution/iOSBuild/index.html#TOC

I am including links to all my screenshots from all the pertinent applications.  It would be so nice to be able to install this on my iPad and then upload to the app store.

Here’s a link to my Dropbox screenshots folder:

https://www.dropbox.com/sh/0c0zgj07jb7yyug/aKwpSV-j9d

Please let me know if you can help.

I had this problems a few weeks back. I ended up deleting Xcode, rebooting, then reinstalling Xcode.

That fixed my problem, but I had tried many other steps before that ( refreshing all profiles and certificates, reinstall CoronaSDK, etc.) So, if there is some magic combination of steps, I have no idea what they are.

On image 3, it shows that provisioning profile doesn’t have a valid identity.

It sounds like something still isn’t right in tieing the profile to the certificate in the Provisioning Portal.  You can also go in Xcode and make sure it’s all signed in correctly and it’s downloaded the profiles.   You can clean out the Library/MobileDevice/Provisioning Profiles folder under your home directory and re-download them from the portal again.

Rob

Hey Rob,

I’m putting all my certs and profiles in a folder called apps on my Desktop.  I think you have something regarding the Library/Mobile Device/Provisioning Profiles folder.   I’m going to take a look there and see if there are conflicting files.

However, I am also concerned about the prefix.   When you look at image 1 (from my post above), you can see that the Distribution and Developer certs have different numbers in parens.  Do you think that could be a problem, and, if so, how do I resolve that?

I’ll let you know abut what happens after I clean out the ProvProfiles folder.  Thanks as always for your shoulder…

I don’t think that number matters. 

Several more hours of frustration, but, ultimately, I believe your advice about clearing the ProvProfile folder were helpful.   I didn’t know how to find the folder you mentioned, then realized that I had to get to it via the UNIX terminal.  When I figured that out and deleted all the old ProvProfs, I was almost to the solution.  However, I had been collecting some ProvProfs in my Desktop folder as well and I had to delete those extra profiles also.  After I had cleared away all extraneous ProvProfs, the one true ProvProf showed up in the Xcode Organizer as a Valid Profile, yay!   So, I finally was able to transfer the app to my iPad.  I’m going to try to upload the app to the app store tonight or tomorrow.  Thanks so much for your help as always!

Here are several important things I learned about building for iOS with Corona.  If you are having problems installing the app onto your device- for example these things are happening:

  • the icon appears, but it is dim compared to what you think it should look like

  • when you click on the icon and it just says Installing… even though it appears to have already been installed

First, don’t try installing using iTunes.  It does not give you enough diagnostic information to see what’s wrong.

Instead, use Xcode organizer to install and use the Xcode Organizer Console to see what’s going on.

Make sure that delete any old Provision Profiles in the ~/Library/MobileDevice/Provisioning Profiles folder.  The only way I was able to get there was via a terminal window.  Use cd and ls commands to get to where you need to go and then rm to remove the profiles that are there.

If you are downloading and storing your Provision Profiles elsewhere, delete any duplicates.  Just have one Provisioning Profile at a time.

Check your keychain access for duplicate certificates.   I had two Developer certificates and they were causing a problem.

When you have made these repairs, restart Xcode and consider restarting Corona Simulator and rebuilding your app.   Being aware of these steps could save your sanity!

It’s funny. I had this exact same issue. Certs and profiles were fine. Doubled checked everything, regenerated certs etc, no joy.

Turns out that i had a cert installed for a company that we were doing work for. I removed it a few days ago because the work had finished and did a build yesterday using our own cert/profiles and it installed without this error.

Just thought I would share incase this was the issue and is affecting anyone else :slight_smile:

How are you installing it?

Can you post a screen shot of your Corona build screen just before you hit the build button?

Do you have valid keys, certificates, provisioning profiles with your test devices installed, etc?

Thanks

Rob

Hey Rob,

I’m going to hop on board and plead for help as well.  I’ve spent the entire day trying to get this app installed on my iPad (with the hope that my updates worked and then upload to app store).   I have tried every permutation of variables including deleting all certs, all provision profiles (from my Mac and from the developer center).   I have been following the procedure you suggested here:

http://docs.coronalabs.com/guide/distribution/iOSBuild/index.html#TOC

I am including links to all my screenshots from all the pertinent applications.  It would be so nice to be able to install this on my iPad and then upload to the app store.

Here’s a link to my Dropbox screenshots folder:

https://www.dropbox.com/sh/0c0zgj07jb7yyug/aKwpSV-j9d

Please let me know if you can help.

I had this problems a few weeks back. I ended up deleting Xcode, rebooting, then reinstalling Xcode.

That fixed my problem, but I had tried many other steps before that ( refreshing all profiles and certificates, reinstall CoronaSDK, etc.) So, if there is some magic combination of steps, I have no idea what they are.

On image 3, it shows that provisioning profile doesn’t have a valid identity.

It sounds like something still isn’t right in tieing the profile to the certificate in the Provisioning Portal.  You can also go in Xcode and make sure it’s all signed in correctly and it’s downloaded the profiles.   You can clean out the Library/MobileDevice/Provisioning Profiles folder under your home directory and re-download them from the portal again.

Rob

Hey Rob,

I’m putting all my certs and profiles in a folder called apps on my Desktop.  I think you have something regarding the Library/Mobile Device/Provisioning Profiles folder.   I’m going to take a look there and see if there are conflicting files.

However, I am also concerned about the prefix.   When you look at image 1 (from my post above), you can see that the Distribution and Developer certs have different numbers in parens.  Do you think that could be a problem, and, if so, how do I resolve that?

I’ll let you know abut what happens after I clean out the ProvProfiles folder.  Thanks as always for your shoulder…

I don’t think that number matters. 

Several more hours of frustration, but, ultimately, I believe your advice about clearing the ProvProfile folder were helpful.   I didn’t know how to find the folder you mentioned, then realized that I had to get to it via the UNIX terminal.  When I figured that out and deleted all the old ProvProfs, I was almost to the solution.  However, I had been collecting some ProvProfs in my Desktop folder as well and I had to delete those extra profiles also.  After I had cleared away all extraneous ProvProfs, the one true ProvProf showed up in the Xcode Organizer as a Valid Profile, yay!   So, I finally was able to transfer the app to my iPad.  I’m going to try to upload the app to the app store tonight or tomorrow.  Thanks so much for your help as always!

Here are several important things I learned about building for iOS with Corona.  If you are having problems installing the app onto your device- for example these things are happening:

  • the icon appears, but it is dim compared to what you think it should look like

  • when you click on the icon and it just says Installing… even though it appears to have already been installed

First, don’t try installing using iTunes.  It does not give you enough diagnostic information to see what’s wrong.

Instead, use Xcode organizer to install and use the Xcode Organizer Console to see what’s going on.

Make sure that delete any old Provision Profiles in the ~/Library/MobileDevice/Provisioning Profiles folder.  The only way I was able to get there was via a terminal window.  Use cd and ls commands to get to where you need to go and then rm to remove the profiles that are there.

If you are downloading and storing your Provision Profiles elsewhere, delete any duplicates.  Just have one Provisioning Profile at a time.

Check your keychain access for duplicate certificates.   I had two Developer certificates and they were causing a problem.

When you have made these repairs, restart Xcode and consider restarting Corona Simulator and rebuilding your app.   Being aware of these steps could save your sanity!

It’s funny. I had this exact same issue. Certs and profiles were fine. Doubled checked everything, regenerated certs etc, no joy.

Turns out that i had a cert installed for a company that we were doing work for. I removed it a few days ago because the work had finished and did a build yesterday using our own cert/profiles and it installed without this error.

Just thought I would share incase this was the issue and is affecting anyone else :slight_smile:

Thanks Jedi for your summery. I have struggled most of the day with the same problem. When I deleted the duplicate certificates it finally worked.