Pavel Oganesyan Pavel Oganesyan - 1 year ago 39
iOS Question

Xcode 4.2 Сode Signing Error

OK, I've read every single topic on SO about this problem and I am still have no solution.
Our app was signed for distribution and was in itunesconnect at "Waiting for review", but we found some bugs and rejected it.
After couple of days we were ready to re-submit the app and "Application failed codesign verification. The signature was invalid, or it was not signed..." occured.

We done next steps:

  1. Creation of new provisioning profile

  2. Cleaning the project and Build folder (a lot of times!)

  3. Trying another Mac Checking the app with this method and there were no issues found

  4. Checking Entitlements and icon file Checking app version and architecture and distribution profile and project.pbxproj file.

Anything missed?


Command Line input

codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.] exists and (certificate leaf[field.1.2.840.113635.] exists or certificate leaf[field.1.2.840.113635.] exists)' path_i_get_after_drag_and_drop_my_app_to_console

Results of codesign check: valid on disk satisfies its Designated Requirement explicit requirement satisfied

Answer Source

Didn't want to do it (accept own answer) - but in my case the reason of error was in files named like ._picname.png in folders added to the project as links to folders (blue in Xcode). After these files have been removed the app was succesfully uploaded to Apple Appstore.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download