Apple Frustration: No code signature found.

So had to recreate my Certificate with apple today due to old one expiring.

Life now is less desirable than it was due to the fact that i cannot install my builds to a device now.

Here is what i did:

  • I Revoked my old Cert via the developers web console
  • Deleted my old provisioning profiles via the developers web console
  • Removed my old Cert via the KeyChain manager on my Mac
  • Removed the old provisioning profiles from the mac via the iPhone Config Utility
  • rebooted for good measure
  • Created a new Cert request using the email address of my mac developer account
  • Created a new cert via the developers web console
  • Downloaded and installed the new cert
  • Created a new Provisioning profile for my app and added the test device to that
  • downloaded the new provisioning profile
  • started the simulator
  • Selected Build for device selecting the new provisioning profile (only choice available)
  • XCode 6.1 attempt to install the build onto the device and …

App installation failed: No code signature found.

Been at this and various variations of this for 3 hours and getting no where.

I don’t remember having any trouble last year when i went through this process but today the Gods are not in my favor.

Any insights into things that i might be missing would be greatly appreciated!

PS same if i use  build 2446 or build 2506

Cheers

Some additional data: if i try to install this via iTunes the device console yields:

atc[28] \<Error\>: 0x1ecd000 \_\_MobileInstallationInstallForLaunchServices\_block\_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of \<MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.SHNKPq/extracted/Payload/ArcherZUpshot.app identifier = com.missingmarble.archerzupshot type = 4\> : 0xe800801c (Code not signed)" UserInfo=0x161d8da0 {LibMISErrorNumber=-402620388, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of \<MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.SHNKPq/extracted/Payload/ArcherZUpshot.app identifier = com.missingmarble.archerzupshot type = 4\> : 0xe800801c (Code not signed), SourceFileLine=186}

Seems that that bit about “code not signed” is interesting but question is how is my process of getting a proper cert and provisioning profile wrong?  I have read where people have trouble if there are multiple certs installed expired and not expired in their key chain but i have just the one and expunged all expired certs from my keychain … 

stumped still.

Solution:

In mac keychain i had the System keychain selected and had removed old certs from that.

Eventually after sufficient frustration i took a look at the login keychain and there as you might have expected were a bunch of other certs that needed to be expunged.  Very confusing as when i was installing new certs they showed up under system …

anyway for anyone coming after … make sure you expunge all the certs under login that are not the one you created in apple’s developer console.

Some additional data: if i try to install this via iTunes the device console yields:

atc[28] \<Error\>: 0x1ecd000 \_\_MobileInstallationInstallForLaunchServices\_block\_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of \<MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.SHNKPq/extracted/Payload/ArcherZUpshot.app identifier = com.missingmarble.archerzupshot type = 4\> : 0xe800801c (Code not signed)" UserInfo=0x161d8da0 {LibMISErrorNumber=-402620388, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of \<MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.SHNKPq/extracted/Payload/ArcherZUpshot.app identifier = com.missingmarble.archerzupshot type = 4\> : 0xe800801c (Code not signed), SourceFileLine=186}

Seems that that bit about “code not signed” is interesting but question is how is my process of getting a proper cert and provisioning profile wrong?  I have read where people have trouble if there are multiple certs installed expired and not expired in their key chain but i have just the one and expunged all expired certs from my keychain … 

stumped still.

Solution:

In mac keychain i had the System keychain selected and had removed old certs from that.

Eventually after sufficient frustration i took a look at the login keychain and there as you might have expected were a bunch of other certs that needed to be expunged.  Very confusing as when i was installing new certs they showed up under system …

anyway for anyone coming after … make sure you expunge all the certs under login that are not the one you created in apple’s developer console.