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.