Home | About | All Things STL | Dev | Investing | Links | Site Search | shanzi @sina | uudaddy | Login | Register

Ads

RSS Feed for This PostCurrent Article

Code signing error in Xcode

Had my share of code signing problem (esp. the enterprise distribution certificate) in my Xcode development. Luckily, stackoverflow rescued me as always. It seems a lot problem is due to the Xcode upgrade, project name change, provision profile/distribute certificate expiring etc. And the solution is usually delete or comment out the offending line. Like below. To go to the project file, I usually do in the command line, “cd projectName.xcodeproj”, then “vi project.pbxproj”.

http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof

http://stackoverflow.com/questions/5758154/code-sign-error-provisioning-profile-cant-be-found

I encountered another problem related to the provisioning profile expiration, the distribute certificate appears twice in the Keychain, even after I deleted it explicitly. It turns out the old distribute certificate came back after I opened the project in Xcode (presumedly it came back when the old provision profile associated with the project got loaded). So the workaround is to delete the old distribute certificate again after opening the project in Xcode.

http://stackoverflow.com/questions/5932522/codesign-error-certificate-identity-appearing-twice

Btw, saw an interesting idea from Mobile Iron regarding the enterprise distribution certificate. Normally the certificate expires in a year. In last 30 days it will prompt the user something like “the provision profile will expire in a few days…”, not good user experience. There is no way to renew it before it expires either. So the workaround suggested by MI is create 2 certificates, and create the second 6 months before the expiration and have user update the app. This way, essentially the app got extended 6 months. And so on. There is one catch in Xcode 4.3.3 I am using. It only recognizes the provision profile that was created earlier (or expires earlier). The workaround there is delete the earlier provision profile :D

Any questions, comments? You can leave comment below (in the comment section) or Email me:

Trackback URL

del.icio.us

Save to del.icio.us

Ads

Google
 
Web www.stlplace.com

RSS Feed for This PostPost a Comment

// 最新推荐 Noteworthy
  • *new* 01-05-13: Most recent credit card offers
  • uudaddy (7-09-11): Airline and hotel credit card offers
  • my iPhone apps (4-14-11): myNestEgg ~ retirement income calculator; collegeFund ~ college savings calculator
  • houseOfKittyBlog 06/06/2008: The Inspiration Behind Hello Kitty – Shintaro Tsuji, Founder and CEO of Sanrio
  • Buffett on Market 12/10/2001: Whats in the future for investors
  • Google Ad

    (**use your own discretion for the the following links**)
  • Author作者

    "古人云,人不自信谁人信之." Others won't believe in you unless you believe yourself. --Chinese proverb

    Hello, world :-) I am not another expert. I am an ordinary guy who believes: by lifetime learning, hard and independent work and discipline, little guys can achieve their dreams, too.

    I grew up in China. Currently I am working on iOS (iPhone/iPad) app development. Here I'm also blogging about iOS app/software development, business, personal finance, and other fun stuffs in life. You can leave comment here or Email me: if you wish to remain private.

  • App dev

  • blog

  • China

  • finance

  • Links

  • Major

  • Saint Louis

  • Shanghai

  • Meta

  • Disclaimer声明

    See Disclaimer Page
  • Valid XHTML 1.0 Transitional