How to fix “failed codesign verification” of an iPhone project?

前端 未结 13 1454
小鲜肉
小鲜肉 2020-11-30 03:54

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

相关标签:
13条回答
  • 2020-11-30 04:19

    This happened to me today as I was moving an existing project into a new Git repository structure, while simultaneously using a development certificate obtained via being added to my client's team as a "Member". So lots of opportunity for things to screw up.

    In my case, the issue turned out to be the "Build Products Path". I had it set to the relative path "../../../build" instead of an absolute path. This was causing the Validate tool to screw up since the actual path wasn't being collapsed properly. I changed it to an absolute path and the Validate tool then began to run successfully once more.

    I submitted this as a bug to Radar as #8946204.

    0 讨论(0)
  • 2020-11-30 04:19

    I fixed this simply by deleting my distribution certificate from keychain then downloading it again from the provisional profile

    0 讨论(0)
  • 2020-11-30 04:20

    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
    0 讨论(0)
  • 2020-11-30 04:21

    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.

    0 讨论(0)
  • 2020-11-30 04:21

    Due to what hiroshi said you can change it there: I just do is:

    • Open the Organizer
    • Go to Devices
    • Provisioning Profile
    • Click on the Profile you want to use. There you will see the profile identifier key.
    • Open the xcode project via textfile (the file in the xcodepj bundle)
    • Go to those lines and put the key in here
    @@ -325,6 +325,7 @@
                                PREBINDING = NO;
     +                               "PROVISIONING_PROFILE[sdk=iphoneos*]" = "key goes        here";
                                SDKROOT = iphoneos;
     @@ -361,6 +362,7 @@
                                PREBINDING = NO;
     +                               "PROVISIONING_PROFILE[sdk=iphoneos*]" = "and also here";
                                SDKROOT = iphoneos;
    
    • Save changes and restart the Project

    !!!That's what worked for me in XCODE 4!!!

    0 讨论(0)
  • 2020-11-30 04:23

    For me the following steps resolved the issue:

    1. Go to Product > Edit Scheme.

    2. Open the Archive Profile.

    3. Set Build configuration to Distribution.

    0 讨论(0)
提交回复
热议问题