tags:

views:

1551

answers:

3

Last night, the iPhone project was built perfectly.

This morning, I installed XCode 3.2.3 in a separate folder. When I open the same project in the old XCode 3.2.2 and re-built the project. I got this warning:

Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

How can I fix it? Thanks!

A: 

If you go to the Organizer and select Provisioning Profiles, is the profile listed there? If so, have you checked that it's setting in the Project Settings/Build/Code Signing section?

alku83
Yes. Yes. I also found that this warning shows up on every old projects. It seems to me 3.1.3 some what alters the 3.1.2 environment...
ohho
+1  A: 

I had the same problem, seems 3.2.3 messes with codesigning. I fixed it by re-running the 3.2.2 installer, no need to uninstall anything.

jenningj
To clarify a bit... does it mean: 1) `3.2.2` installed 2) install `3.2.3` 3) re-install `3.2.2`. After that, both `3.2.2` and `3.2.3` will work?
ohho
That's what I'm suggesting, yes. I can confirm being able to codesign for App Store (for OS 3.0 using 3.2.2). XCode 3.2.3 runs fine, but haven't tested out building/codesigning.
jenningj
+1  A: 

I've encountered the same problem too. It showed that I had a duplicate certificate registration in my keychains. Removing one of them (I removed the one from my system keychain) fixed the problem.

Steps that helped me to resolve my problem:

  1. Open KeyChain Access application
  2. Select the 'login' keychain, and select in the bottom pane 'Certificates'
  3. Switch to the 'system' keychain and see if there are certificates registered in both chains.
  4. Remove one of them
  5. Rebuild the application
JJM
i had several certificates in different key-chains, leaving only one solved problem
GameBit