IOS xCode6 (application signature is not valid)

This is not the first time this has happened to me. Last time I decided it by accident, but could not move on. I lost 2 days on this and I have no hair. So here is the problem. I need to rewrite the Enterprise Distributed application to release the latest update. I do this in the terminal using the codesign function. Everyone seems to be building correctly. No problem on the way. When it comes to downloading a new application to my device, it fails and in the xCode device logs it tells me (Application signature not valid) .

So, I am in a great mood at this moment when I realize that I’ve returned to that place and that I can write off the rest of the week.

So, here is what I have done so far to fix this.

  • Removed all my associated keys and certificates in keychain access
  • Deleted saved provisioning profiles from my device.
  • Revoke and destroy all certificates in xCode and the apple dev portal.
  • Updated from xcode to get new developer and distribution
    certificates.
  • New certificate request files created
  • Created a new application identifier under a new name
  • Added push services using a new signature request
  • Created a new provisioning profile with a new name and using all new valid certificates created earlier.
  • All .plist files with new information and code signed in the terminal are created.

Without changes.

Private and public keys are all there. I did everything that was mentioned in each walkthrough and the answer I can find. I have been involved in this process many times, and I am very good at it, but it just does not work for me.

The only thing I can guess, since the problem is that my Certficate in the keychain has no code next to the description. It can be nothing but everything that I can think of at the moment. he says iPhone Distribution: <name> instead of iPhone Distribution: <name> (<teamcode>) . It doesn't seem to matter how I create the keys, it doesn't seem to fix this.

If so, if someone can point me to a detailed and modern step-by-step guide on how to do this, this will be the beginning.

And if someone knows or knows the ultimate and up-to-date step-by-step guide on how to successfully create valid and valid Enterprise distribution certificates, it will be all gold.

Here my error log code is just for fun

 [MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid) Mar 17 14:40:54 My-iPad installd[36] <Error>: 0x1d44000 -[MIInstaller performInstallationWithError:]: Verification stage failed Mar 17 14:40:55 My-iPad itunesstored[83] <Error>: 0x681000 __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.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid)" UserInfo=0x16edcd10 {LibMISErrorNumber=-402620391, 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.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186} 

Any help on this would be greatly appreciated.

0
source share
1 answer

So, I got him to work. I don’t know how this changed at any other time, but here it is.

  • Connected both my iPad and iPhone and deleted all profiles profiles
  • Removed all (developer / distribution) certifcates from keychain access
  • Checked that logins are the default folder
  • Revoked my certificates at Apple Dev Center
  • Created a new distribution certificate (but did not upload it after)
  • went to xcode and updated signature identifiers (now empty due to deletion in keychainaccess)
  • requested a new developer profile from xcode (he built one for me)
  • requested a new distribution profile (there was one, so it was updated from the one I did a few seconds ago)
  • Now they are displayed in keychainaccess
  • returned to dev center to create a new application identifier (with a new name for previous releases).
  • created a new provisioning profile and uploaded it.
  • returned to the application to unzip + change + fire him with a new training profile
  • Created a new plist file and uploaded everything to the SSL site
  • Went for coffee
  • Download the application to your device
  • He works.
  • Tested on my girlfriends device.
  • Mission accomplished successfully.

having gone through this so many times, I have no idea how much of this was the winning part, so I just list them all in the hope that it will help someone. if someone knows which part was winning. Let me know. I do not know how I would deal with this again.

0
source

All Articles