开发者

iphone xcode 4 CSSMERR_TP_CERT_NOT_VALID_YET

开发者 https://www.devze.com 2023-04-04 06:06 出处:网络
I\'ve set up a provisioning profile in the keychain etc but I keep getting this error when trying to create an IPA

I've set up a provisioning profile in the keychain etc but I keep getting this error when trying to create an IPA

CSSMERR_TP_CERT_NOT_VALID_YET Command /usr/bin/codesign failed with exit code 1

I read somewhere that "clean all contacts" might help, does anybody know where this option is?

EDIT: I just noticed in the keychain the certificate says "This certificate is not yet va开发者_如何学Golid" how do I fix this?


Here are a few steps you can follow to see whether the issue works out. (Note: I know some of these are basic steps, but I'm listing them down since they're some of the steps I myself would follow given the same situation)

  • Is your system clock running the correct time?
  • You might be having an outdated version of the cert. Try downloading the cert again from the portal and reinstalling it.
  • If XCode still complains, under BUILD menu select 'Clean All Targets' and the Build your project again
  • Under WINDOW menu, select Organizer. Go to Provisioning section and see whether you have the necessary profiles installed. And see if everything looks 'green' i.e. no red / errors
  • Do a 'Get Info' on BOTH your Project and your Target and ensure that the proper Certificate is set to the proper Profile


I once had a similar problem and it wasn't that my system clock was set wrong, but the certificate had been "created" a few hours in the future, probably on a system in a different time zone. I changed my system clock to a few hours in the future to fake it out and VIOLA!

0

精彩评论

暂无评论...
验证码 换一张
取 消