[Resolved] Trouble with iOS certificates

I keep getting this error every time I try to build my app:

invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 879

  • (null)

I’ve gone through the process of revoking my certificates and deleting my provisioning profiles, then rebuilding and reinstalling them all several times. Nothing seems to fix the problem. Any suggestions? [import]uid: 35706 topic_id: 30897 reply_id: 330897[/import]

When did the error start occurring? Is it new? Any changes? Do you have any sub folders? Can you build our sample apps OK?

Please let me know :slight_smile: [import]uid: 52491 topic_id: 30897 reply_id: 123580[/import]

Hi Peach. The error started yesterday. My certificate had expired. I didn’t think getting a new one would be such a headache.

I tried building a sample app and got the same error:

failed to extract requirements data: 1  
/Users/samtannen/Desktop/HelloPhysics.app: invalid signature (code or signature have been modified)  
failed to extract entitlements: 1  
AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879  
 - (null)  
  
warning: Unable to extract codesigning entitlements from your application. Please make sure HelloPhysics is a valid Mach executable that's properly codesigned. (-19050)  
/Users/samtannen/Desktop/HelloPhysics.app/HelloPhysics: invalid signature (code or signature have been modified)  
 - (null)  

There are sub-folders in my app but none in the same app. So I don’t think folders are the issue. There’s got to be one obvious piece I’m missing here but I can’t figure out what it is! [import]uid: 35706 topic_id: 30897 reply_id: 123616[/import]

Try deleting expired certificates in your keychain.
From your dock, click Launchpad > Utilities > Keychain Access
Right click on expired certificates and delete.
If the expired certificate has the same name as the new one (which it probably does) this should fix it. [import]uid: 47723 topic_id: 30897 reply_id: 123628[/import]

I asked about subfolders as have seen this happen if people have one using reserved name, such as “resources”.

I’d +1 to the above BUT make sure you delete all provisioning profiles out of Xcode FIRST - if you don’t then your expired certificates will reappear.

Once all gone and clean redo certs and renew (if needed) and download provisioning profiles again. That should do the trick I believe.

Peach :slight_smile: [import]uid: 52491 topic_id: 30897 reply_id: 123651[/import]

Ugh, it’s still giving me the same error…My certificates say they’re valid and I created new provisioning profiles, but yet…

failed to extract requirements data: 1  
/Users/samtannen/Desktop/ShapeTumbler.app: invalid signature (code or signature have been modified)  
failed to extract entitlements: 1  
AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879  
 - (null)  
  
warning: Unable to extract codesigning entitlements from your application. Please make sure ShapeTumbler is a valid Mach executable that's properly codesigned. (-19050)  
/Users/samtannen/Desktop/ShapeTumbler.app/ShapeTumbler: invalid signature (code or signature have been modified)  
 - (null)  

I’m stumped… [import]uid: 35706 topic_id: 30897 reply_id: 123803[/import]

Are you totally certain you don’t have any dupe certificates? Check very carefully, they can be hard to spot even if you’re paying attention. (As per: http://developer.coronalabs.com/forum/2012/07/05/device-build-errors-ad-hoc-profile) [import]uid: 52491 topic_id: 30897 reply_id: 123852[/import]

When did the error start occurring? Is it new? Any changes? Do you have any sub folders? Can you build our sample apps OK?

Please let me know :slight_smile: [import]uid: 52491 topic_id: 30897 reply_id: 123580[/import]

Hi Peach. The error started yesterday. My certificate had expired. I didn’t think getting a new one would be such a headache.

I tried building a sample app and got the same error:

failed to extract requirements data: 1  
/Users/samtannen/Desktop/HelloPhysics.app: invalid signature (code or signature have been modified)  
failed to extract entitlements: 1  
AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879  
 - (null)  
  
warning: Unable to extract codesigning entitlements from your application. Please make sure HelloPhysics is a valid Mach executable that's properly codesigned. (-19050)  
/Users/samtannen/Desktop/HelloPhysics.app/HelloPhysics: invalid signature (code or signature have been modified)  
 - (null)  

There are sub-folders in my app but none in the same app. So I don’t think folders are the issue. There’s got to be one obvious piece I’m missing here but I can’t figure out what it is! [import]uid: 35706 topic_id: 30897 reply_id: 123616[/import]

Try deleting expired certificates in your keychain.
From your dock, click Launchpad > Utilities > Keychain Access
Right click on expired certificates and delete.
If the expired certificate has the same name as the new one (which it probably does) this should fix it. [import]uid: 47723 topic_id: 30897 reply_id: 123628[/import]

I asked about subfolders as have seen this happen if people have one using reserved name, such as “resources”.

I’d +1 to the above BUT make sure you delete all provisioning profiles out of Xcode FIRST - if you don’t then your expired certificates will reappear.

Once all gone and clean redo certs and renew (if needed) and download provisioning profiles again. That should do the trick I believe.

Peach :slight_smile: [import]uid: 52491 topic_id: 30897 reply_id: 123651[/import]

Ugh, it’s still giving me the same error…My certificates say they’re valid and I created new provisioning profiles, but yet…

failed to extract requirements data: 1  
/Users/samtannen/Desktop/ShapeTumbler.app: invalid signature (code or signature have been modified)  
failed to extract entitlements: 1  
AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879  
 - (null)  
  
warning: Unable to extract codesigning entitlements from your application. Please make sure ShapeTumbler is a valid Mach executable that's properly codesigned. (-19050)  
/Users/samtannen/Desktop/ShapeTumbler.app/ShapeTumbler: invalid signature (code or signature have been modified)  
 - (null)  

I’m stumped… [import]uid: 35706 topic_id: 30897 reply_id: 123803[/import]

Are you totally certain you don’t have any dupe certificates? Check very carefully, they can be hard to spot even if you’re paying attention. (As per: http://developer.coronalabs.com/forum/2012/07/05/device-build-errors-ad-hoc-profile) [import]uid: 52491 topic_id: 30897 reply_id: 123852[/import]

How was this resolved? I am getting the same error after cleaning out certs and resetting provisioning profiles. Getting the same result for the sample code as well. I can’t use ad hoc profiles since I’m still on the trial version.

Here’s the full error:
failed to extract requirements data: 1
/Users/brian/Desktop/HorseAnimation.app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 879

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure HorseAnimation is a valid Mach executable that’s properly codesigned. (-19050)
/Users/brian/Desktop/HorseAnimation.app/HorseAnimation: invalid signature (code or signature have been modified)

  • (null)
    [import]uid: 99740 topic_id: 30897 reply_id: 129674[/import]

How was this resolved? I am getting the same error after cleaning out certs and resetting provisioning profiles. Getting the same result for the sample code as well. I can’t use ad hoc profiles since I’m still on the trial version.

Here’s the full error:
failed to extract requirements data: 1
/Users/brian/Desktop/HorseAnimation.app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 879

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure HorseAnimation is a valid Mach executable that’s properly codesigned. (-19050)
/Users/brian/Desktop/HorseAnimation.app/HorseAnimation: invalid signature (code or signature have been modified)

  • (null)
    [import]uid: 99740 topic_id: 30897 reply_id: 129674[/import]

I downloaded the latest corona public build, imac os.10.6.8 with valid provisional codes. When building, I am now getting the following error message:

Your application built but failed Apple’s validation tests…

failed to extract requirements data: 1
/Users/krackers/Desktop/IOS.app: code or signature modified
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 866

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure IOS is a valid Mach executable that’s properly codesigned. (-19050)
/Users/krackers/Desktop/IOS.app/IOS: code or signature modified

  • (null)

I’d appreciate some help on this.
Thanks,
Frank
[import]uid: 31039 topic_id: 30897 reply_id: 132466[/import]

I downloaded the latest corona public build, imac os.10.6.8 with valid provisional codes. When building, I am now getting the following error message:

Your application built but failed Apple’s validation tests…

failed to extract requirements data: 1
/Users/krackers/Desktop/IOS.app: code or signature modified
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 866

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure IOS is a valid Mach executable that’s properly codesigned. (-19050)
/Users/krackers/Desktop/IOS.app/IOS: code or signature modified

  • (null)

I’d appreciate some help on this.
Thanks,
Frank
[import]uid: 31039 topic_id: 30897 reply_id: 132466[/import]

Is that in the terminal or a popup, or when you go to upload/install?

If terminal, does the app still install fine? [import]uid: 52491 topic_id: 30897 reply_id: 132664[/import]

I solved it by installing the lion os and xcode 4.5.

Thanks Peach [import]uid: 31039 topic_id: 30897 reply_id: 132724[/import]

Is that in the terminal or a popup, or when you go to upload/install?

If terminal, does the app still install fine? [import]uid: 52491 topic_id: 30897 reply_id: 132664[/import]