iPhone 应用程序上传 - CodeSign 丢失?
很长一段时间以来,我一直在论坛中搜索,同时自学 iPhone 编程的乐趣,我感谢你们在不知不觉中帮助我解决了大量的问题!
在将我完成的应用程序上传到 Apple 方面,我似乎遇到了障碍,并且非常感谢您愿意提供的任何帮助/建议。
这是我第一次上传到苹果,所以如果这一切有点粗略,我深表歉意!
经过一些调整后,我成功地遵循了 Apple 为我的项目创建新的分发配置文件的指南,在目标信息中应用了我的新分发证书,并成功构建了项目。听起来不错!问题是,当我将其上传到苹果时,我收到通用的“应用程序未签名”错误。
经过一个深夜和一些研究后,我意识到在我的应用程序的详细构建日志中,没有像苹果建议的那样包含“CodeSign”一词的行。看起来 XCode 在编译时甚至没有尝试 CodeSign .app。
我尝试过的: 创建新的 AppID、证书和分发配置文件(多次)。 尝试打包一个Apple示例(未篡改)。 下载了 7.5 小时后,我重新安装了 XCode,但没有效果。
我缺少一些简单的东西吗?有没有其他人经历过 XCode 未将 CodeSign 行添加到详细构建日志中的情况?
任何帮助将非常感激。
问候,
拉尔夫
解决了
我认为我没有在设备下构建这一事实在这方面发挥了很大的作用。经过多次(更多)调整后,我设法通过以下方式将其提交到 CodeSign: 重新安装 XCode 在我所做的每件事之间,运行“清理所有”目标函数很多次。 删除了我的钥匙串上的所有证书并下载了所有新证书。 确保我在目标和项目设置上使用设备和我的分发配置文件。 还有很多汗水和泪水..!
感谢您的帮助!
For a long time now I have been searching through the forum whilst teaching myself the delights of iPhone programming, and I thank you all for the massive number of questions you have unknowingly helped me with!
I seem to have come up against a brick wall regarding the upload of my finished application to Apple and would appreciate any help/advice that you may be willing to give.
This is my first upload to apple so apologies if this is all a little sketchy!
After some tweaking I have successfully managed to follow Apples guidelines on creating a new Distribution profile for my project, applied my new Distribution certificates in the Target info and got the project to successfully build. Sounds good! Problem is when I upload this to apple i get their generic "App is not Signed" error.
After one hell of a late night and some research I realised that in the detailed Build Log of my application there is no line that includes the word "CodeSign" as apple suggest. It appears that XCode when compiling isn’t even attempting to CodeSign .app.
What I have tried:
Creating new AppIDs, Certificates and Distriution profiles (a number of times).
Trying to package an Apple example (untampered).
After a 7.5 hour download i have reinstalled XCode to no avail.
Is there something simple I am missing? Has anyone else experienced this where XCode doesn’t add a CodeSign row to the Detailed build log?
Any help would be very much appreciated.
Regards,
Ralph
Solved
I think the fact I wasn’t building under device played quite a big part in this. After much (more) tweaking I managed to get it to CodeSign by:
Re-installing XCode
Running the Clean All targets function a huge number of times in-between everything I did.
Deleted all certs on my Keychain and downloaded all new ones.
Making sure I was using device and my Distribution profile on both Target and Project settings.
And a lot of sweat and tears..!
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很奇怪。您肯定是为设备而不是模拟器构建的?
在发布/应用商店配置设置中仔细检查您的代码签名身份。
它应该是任何 iPhone 设备:iPhone 发行版:您的公司名称
That's weird. You're definitely building for the device and not the simulator?
Double check your Code Signing Identity in your Release/Appstore configuration settings.
It should be Any iPhone Device: iPhone Distribution: Your company name