Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Application failed codesign verification. codesign_wrapper-0.7.10: Failed to load provision profile from

I'm really pulling my hair at this very annoying problem, I usually build new apps for the App Store without issues, but this time it just doens't work.

The weird thing is when i just do "Build" for "Release", it works with no problem, but when i do "Archive" for "Release", it shows the following error

warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011) Executable=/Users/freak4pc/Library/Developer/Xcode/DerivedData/MyApp-atlgyhqdbhtnxvdnpfikhboujfpu/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/MyApp AssertMacros: message, file: codesign_wrapper.c, line: 554 AssertMacros: profile, file: codesign_wrapper.c, line: 918 codesign_wrapper-0.7.10: Failed to load provision profile from: /Users/freak4pc/Library/Developer/Xcode/DerivedData/MyApp-atlgyhqdbhtnxvdnpfikhboujfpu/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/embedded.m - (null)

My provisioning profile should be working perfectly, as the Organizer also recognizes it as valid. My Entitlements only have a get-task-allow set to NO value, which i always use on successful builds.

I've tried just about anything except for removing my keys and recreating them, which I'd rather not do - since this is the only app i have problem building.

Tried:

1. Recreating the Entitlements
2. Redownloading the Provisioning profile
3. Do a complete clean including Clean Build Folder
4. Edit the pbxproj file and clearing all the entielements and signing option and re-setting them

Anything i'm missing?

like image 916
Shai Mishali Avatar asked Mar 25 '12 14:03

Shai Mishali


3 Answers

The 'embedded.m' at the end of the last Line should be 'embedded.mobileprovision'. It's caused by the Line length being exceeded and the command being truncated.

I had the same problem and solved it by shortening the app name. You may want to try something similar. Basically anything that makes that last command line shorter so it's not truncated.

Richard

like image 143
Richard Avatar answered Oct 19 '22 13:10

Richard


You might not want to shorten your app name. An alternative is...

In Xcode->Behaviors->Edit Behaviors->Locations: change Derived Data to a custom file path (drop down menu), and then create a shorter file path. My files were embedded in a few folders, and I saved myself characters by moving the derived data folder closer to my home dir.

Renaming the project is kinda scary because it caused problems with my source control (although I'm no expert with Git).

like image 27
Ben Boral Avatar answered Oct 19 '22 13:10

Ben Boral


I also have the same problem. All my provisioning Profiles, Certificates, Bundle Identifier every thing was perfect. Except My Apps Executable file Name in Info.Plist and Product Name in Target Build Settings was slightly different. And just because of that codesign_wrapper was not able locate Provisioning. I spend nearly one day to figure this out.

So Please do one check App Product Name is have to be same with your Executable file in Info.Plist.

like image 1
TheGhost Avatar answered Oct 19 '22 12:10

TheGhost