Fix “Code Sign error” error after update iOS

每次只要更新完iPhone的OS後,要從Xcode Run安裝測試程式在iPhone上都會出現Code Sign error的錯誤,真是不堪其擾。然後每次都會忘記要怎麼解決,花好多時間處理,真煩!! 在這裡寫成一篇教學避免每次都要查半天…

Every time after update iOS, it always show the DAMN “Code Sign error” message while building iPhone App project. It really annoys me! and always make me spent much time try to fix it. :twisted: So I write this tutorial to prevent me forget how to fix again…

Occurs the DAMN “Code Sign error” message

Step 1. select Project -> Edit Project Settings (or Hotkey: option + command + E)

Step 2. choose configuration (Remember set both Debug and Release version)

Step 3. choose “Code Sign Identity”

Step 4. Re-choose identity value

Then run again… You should not see the damn error again!! (Until next time you update your iPhone OS ~”~) Hope it’s helpful for you….. Orz

If it still can’t work properly, try the following extra steps to fix:

1. Right Click the Project (eg. x.xcodeproject) and select Show Package Content
2. Open project.pbxproj with textEdit
3. Search for all "CODE_SIGN_IDENTITY[sdk=iphonesos*]" and set it to "CODE_SIGN_IDENTITY[sdk=iphonesos*]" = "iPhone Developer";
4. Searach for "PROVISIONING_PROFILE[sdk=iphonesos*]" and set it to "PROVISIONING_PROFILE[sdk=iphonesos*]" = "";
5. Now Save the file
6. Now Reopen the xCode project or select "Read from Disk" resulting from xcode the prompt.
7. This Worked for me. i hope it works for you too

Good luck!!

Tags: , , ,

Leave a Reply