xcode4彻底解决Invalid Signature
Invalid Signature - Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target.
签名错误是个很正常的问题,一般是因为发布app的时候,忘记了修改签名所致,这个问题在xcode3时代很好解决。但是在xcode4上笔者已经两次遇到它了。真是郁闷,之前都是按网上说的把不是这次用的证书通通删掉,一般情况下可以解决。但是这也不是个事儿啊?尤其是同时维护好几个app的时候,总不能每次都这么干吧,经过一番努力终于研究明白了在xcode4上怎么彻底解决这个问题,特把解决步骤写一下.
首先确定签名这里所有出现签名的地方都是你要提交的app的签名,如上图现在的情况虽然Debug和Release后面的签名是正式用的签名但是Any SDK和 Any IOS SDK用的签名却不是正式的,修改正确了.
其次打包的时候注意identity后面跟的签名文件是不是要使用的。
基本这两个地方都确定无误了也就和 Invalid Signature说byebye了