简体   繁体   English

XCode 4.3协同设计失败

[英]XCode 4.3 codesign failed

H ello Everyone, after installing the last Xcode 4.3.1 I stuck with submitting apps. H ello Everyone,在安装了最后一个Xcode 4.3.1后,我坚持提交应用程序。 I can't archive apps for submitting. 我无法存档用于提交的应用。 It says: 它说:

warning: Application failed codesign verification.  The signature was invalid, contains   disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Users/YYYYYY/Library/Developer/Xcode/DerivedData/XXXX002-ekjbelaglwpkredizicvazolomgj/Build/Intermediates/ArchiveIntermediates/ZZZZ/InstallationBuildProductsLocation/Applications/ZZZZ.app/ZZZZ
AssertMacros: message,  file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 495
AssertMacros: profile,  file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 904
codesign_wrapper-0.7.10: Failed to load provision profile from: /Users/YYYYYY/Library/Developer/Xcode/DerivedData/XXXX002-ekjbelaglwpkredizicvazolomgj/Build/Intermediates/ArchiveIntermediates/ZZZZ/InstallationBuildProductsLocation/Applications/ZZZZ.app/embedded.mobileprov
- (null)

I've tried to put in provisioning profiles (renew them), but it does not help. 我试图提供配置文件(更新它们),但它没有帮助。 There is no such a warring during normal build, only during archiving. 在正常构建期间,仅在归档期间没有这样的交战。 In organizer when I press renew it gets only developers provisioning profiles and not renewing ones for distribution. 在组织者中,当我按下续订时,它只获得开发人员配置配置文件而不是更新配置文件。 So I put the distribution profile manually. 所以我手动放置了分发配置文件。

I've tried also to fix the project - Code sign identity - putting there iPhone distributing provisioning profile, remove build and clean targets, remove DerivedData (just in case) like people advised and cleaning all targets and checked twice that certificate is not expired. 我也尝试修复项目 - 代码签名身份 - 放置iPhone分发配置文件,删除构建和清理目标,删除DerivedData(以防万一)像人们建议和清理所有目标并检查两次证书未过期。

Fortunately I kept the previous version of XCode 4.2, and it works fine archiving the same project. 幸运的是,我保留了以前版本的XCode 4.2,它可以很好地归档同一个项目。 But I would love to hear any suggestions how to make XCode 4.3 working. 但我很想听听有关如何使XCode 4.3正常工作的任何建议。 Thank you in advance. 先感谢您。

I had exactly this problem last night and was tearing my hair out! 我昨晚遇到了这个问题,正在撕裂我的头发!

However, the clue is that the last line "Failed to load provision profile" has characters missing from the end ('mobileprov' instead of 'mobileprovision'). 但是,线索是最后一行“无法加载配置文件”在结尾处缺少字符('mobileprov'而不是'mobileprovision')。 Mine did too. 我的也是。 I think there's a character limit per line and if your directory or application name is too long it will fail to work properly. 我认为每行有一个字符限制,如果你的目录或应用程序名称太长,它将无法正常工作。

I re-created the project with a shorter name and everything worked fine (after re-doing the provisioning, etc.). 我用较短的名称重新创建了项目,一切正常(重新进行配置后等)。

Since that was my first app (and it was painful to submit!) this is a stab in the dark as to what the real cause is - so perhaps the more advanced users out there could tell me if I'm right or not? 因为这是我的第一个应用程序(并且提交真的很痛苦!)这是真正的原因所在的黑暗 - 所以也许那些更高级的用户可以告诉我,如果我是对的? Or was the re-creation of the project more likely to have fixed the issue? 或者重新创建项目更有可能解决问题?

Richard 理查德

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM