How to resolve code sign error in XCode

Getting a code sign error has many reasons.


Below are the measured steps to be taken after downloading the profile from Developer account and before making the build.


1. When you download a new/updated profile from the developer account, delete the existing profile and then add the new profile to the "Provisioning Profile" folder.


2. Restart XCode. Since only after restart, the XCode can identify your new profiles. Else it will be referring to your old profiles.


3. Go to Edit Project Settings -> Build Settings -> Code Signing Identity -> (Release/Distribution) -> Other.  Now, clear the old data displayed. Now select the new profile from the list of profiles in Code Signing Identity. The new profile will be displayed at the top of the list, next to "Don't code sign".


4. Repeat Step 3 process in Edit Target Settings.


5. Build and Run.


And, ONE MORE THING,


Don't forget to Clean All the Targets before making the Build and Run.

Comments

  1. Hi Basheer

    I am facing with this error(Command /usr/bin/codesign failed with exit code 1). I just updated my Mac OS 10.6.5 to 10.6.8. Last few days i am trying to resolve but, i am not able to resolve this issue please help me out.

    Thanks

    Alok kuamr

    ReplyDelete

Post a Comment

Popular posts from this blog

Connect Samsung devices to Kies on Mac

Integrating ZXing QR Code reader in iPhone / iOS applications

Multiple line of text in UIPickerView