简体   繁体   English

xcode 4.2,代码签名分发

[英]xcode 4.2, code signing for distribution

I have finished coding my app and have spent the last 2-3 days on figuring out why and what I am doing wrong with building an archive to be uploaded to apple app store. 我已完成对我的应用程序的编码,并且花了最后2-3天来确定构建存档以便上传到苹果应用程序商店的原因和错误。

1 - I verified that my new app is in "Waiting for Upload" state. 1 - 我确认我的新应用处于“等待上传”状态。

2 - I have download and double click on the WWDR intermediate certificate. 2 - 我已下载并双击WWDR中间证书。 Verified that this exist in my key chains. 验证这存在于我的密钥链中。

3 - I verified that my distribution certificate is not expired. 3 - 我确认我的分发证书没有过期。 It's expiration date is a year from today. 它的到期日是从今天开始的一年。 Its status is "Issued" 它的状态是“已发布”

4 - I have created app id. 4 - 我创建了应用程序ID。 I verified that the app name space portion is exactly the same as my application name space. 我确认应用程序名称空间部分与我的应用程序名称空间完全相同。 The states that this app is in are: - push notification: configurable (yellow) - in app purchase: enable (green) (i want to turn this off, but there's no way to) - game center: enable (green) (i want to turn this off, but there's now way to) - iCloud: configurable (yellow) 这个应用程序所处的状态是: - 推送通知:可配置(黄色) - 在应用程序购买:启用(绿色)(我想关闭它,但没有办法) - 游戏中心:启用(绿色)(我想关闭它,但现在有办法) - iCloud:可配置(黄色)

5 - I have verified that my distribution provision is "Active" for the correct application id. 5 - 我已经验证我的分发条款对于正确的应用程序ID是“活动的”。

6 - i have downloaded and installed and installed all 3 where they belong: a - WWDR intermediate certificate b - Distribution certificate c - Distribution provisioning profile 6 - 我已经下载并安装并安装了它们所属的所有3个:a - WWDR中间证书b - 分发证书c - 分配配置文件

I have Xcode 4.2 with IOS 5. I did an update on the app store for the latest version of XCODE 2 days ago. 我有IOS 5的Xcode 4.2。我在应用程序商店中对2天前最新版本的XCODE进行了更新。

In Xcode -> organizer - Devices: under "Developer Profile" i have verified that I have the correct provision profile for distribution under "Provisioning Profiles" i have verified that I have the correct provision profile for distribution 在Xcode中 - >管理器 - 设备:在“开发人员配置文件”下,我已经验证我在“配置配置文件”下有正确的配置配置文件我已经验证我有正确的配置配置文件用于分发

in Xcode -> project -> build setting: i have verified that I specified the correct code signing provision under "Code signing Identity" for both debug and release type. 在Xcode中 - >项目 - >构建设置:我已经验证我在“代码签名标识”下为调试和发布类型指定了正确的代码签名规定。 debug: i point to my developer provision release: i point to my distribution provision debug:我指向我的开发人员配置版本:我指向我的分发配置

in Xcode -> target -> build setting i did the same as the project describe above. 在Xcode中 - > target - > build setting我做了与上面描述的项目相同的操作。

I left "Code signing entitlements" blank I left "code signing resource rules path" blank i left "other code signing flags" blank 我离开“代码签名权利”空白我离开“代码签名资源规则路径”空白我留下“其他代码签名标志”空白

I modify the schema for "iOS device" for "archive", i specified: "release" under "build configuration" "nameOfMyApp" under "archive name" i have checked "reveal archive in organizer" 我为“存档”修改了“iOS设备”的架构,我在“存档名称”下指定了“构建配置”“nameOfMyApp”下的“release”我检查了“在管理器中显示存档”

I made sure that my project is compile for all static library. 我确保我的项目是针对所有静态库编译的。

I then click on "Product" -> "Archive" 然后我点击“产品” - >“存档”

The project compiled, there was no compilation error. 项目编译后,没有编译错误。 (i verified that my app ran on my iPhone) (我确认我的应用程序在我的iPhone上运行)

Toward the end of the archiving a window for codesign pop up. 在归档结束时,会出现一个用于编码的窗口。 the message says in exact letters: "codesign wants to sign using key "" in your keychain." 消息用精确的字母说:“代码签名想在你的钥匙串中使用密钥”“签名。” I allow it. 我允许它。 (is "" suppose to have some other name other than "key"?) (是“”假设除了“key”之外还有其他名称?)

After I click allow, I see "build succeeded" 点击“允许”后,我看到“构建成功”

I go to the organizer -> Archives, I do not see any item under this section. 我去组织者 - >档案馆,我没有看到本节下的任何项目。 the organizer shows "No Archives" for the left pane. 组织者在左侧窗格中显示“No Archives”。 and the main panel. 和主要小组。

I go to the path where the archive would be shown, I see the archived file, but the size is "Zero byte" 我转到将显示存档的路径,我看到存档文件,但大小是“零字节”

So I search this forum for help, and someone posted a link to a guide: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933 所以我在这个论坛上寻求帮助,有人发布了指南的链接: https//developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933

I went over this link in very good detail, but still NO luck. 我非常详细地浏览了这个链接,但仍然没有运气。

I've been on this issue for a very long time and it's driving me mad and crazy. 我已经在这个问题上待了很长时间,这让我疯狂和疯狂。 There are no error returned, thus I have no idea how to fix this issue. 没有返回错误,因此我不知道如何解决此问题。

Would someone help me out? 有人会帮帮我吗?

Also is there a phone number that apple provide to support issue like this? 还有苹果提供的电话号码支持这样的问题吗? If there is, please provide it here. 如果有,请在此提供。

After 3 months of development, my app is done and just sitting on my computer and not on the app store. 经过3个月的开发,我的应用程序已经完成,只是坐在我的电脑上,而不是在应用程序商店。 sigh...... 叹......

I had the same issue when I archived the app, I got the message "codesign wants to sign using key <key> in your keychain." 我在归档应用程序时遇到了同样的问题,我收到了消息“codesign想要使用密钥链中的密钥<key>进行签名。” <key> should have been 'my distribution certificate name', went to all the steps what could be wrong: <key>应该是'我的分发证书名',去了所有可能出错的步骤:

  • distribution certificate was correct in keychain 钥匙串中的配送证书是正确的
  • deleted all old certificates 删除所有旧证书
  • checked if the mobileprovision was valid in terminal 检查mobileprovision在终端中是否有效

but that didn't work. 但那没用。 Finally contacted apple support and pointed me to https://developer.apple.com/legacy/library/technotes/tn2250/_index.html --> Configuration Troubleshooting 最后联系了apple支持并指向我https://developer.apple.com/legacy/library/technotes/tn2250/_index.html - >配置疑难解答

Followed these steps (see for more details the link): 遵循这些步骤(有关链接的详细信息,请参阅参考资料):

  • deleted all distribution certificates in keychain 删除了钥匙串中的所有分发证书
  • also deleted provisioning profiles 还删除了配置文件
  • revoked the certificate on the developer account site 撤销了开发者帐户网站上的证书
  • created new certificate 创建了新证书
  • renewed distribution provision files (on the site) 更新的分发配置文件(在网站上)
  • downloaded and dragged/dropped the new certificate and provision file in xcode 在xcode中下载并拖放新证书和配置文件

Note: In the troubleshoot session it says you can renew using Xcode, I did not work for me as I got the message that "There is already a certificate request pending", manually did the trick... 注意:在疑难解答会话中,它表示您可以使用Xcode续订,我没有为我工作,因为我收到消息“已经有证书请求未决”,手动完成了这个伎俩...

The method you described deviates a little from the method that I just recently used. 您描述的方法与我最近使用的方法略有不同。 Try following this guide: 请尝试遵循本指南:

http://www.touch-code-magazine.com/how-to-upload-an-app-to-the-app-store-with-xcode-4/ http://www.touch-code-magazine.com/how-to-upload-an-app-to-the-app-store-with-xcode-4/

It worked perfectly for me and seems to be a different method than what you did. 它对我来说很完美,似乎与你所做的不同。 It uses the xcode interface directly to go all the way through the upload process. 它直接使用xcode接口完成上传过程。 (aka, you don't need to manually upload the file via your internet browser) (也就是说,您不需要通过互联网浏览器手动上传文件)

EDIT: 编辑:

Also try: http://www.weston-fl.com/blog/?p=2442 还可以尝试: http//www.weston-fl.com/blog/? p = 2442

I had ever ran into similar issue which is because I installed xcode 4.0 after 4.2, it is solved by re-install xcode 4.2. 我遇到过类似的问题,因为我在4.2之后安装了xcode 4.0,它是通过重新安装xcode 4.2来解决的。 You may have a try. 你可以尝试一下。

For technical support, you may request tsi (http://developer.apple.com/membercenter/index.action#techSupport) 如需技术支持,您可以申请tsi(http://developer.apple.com/membercenter/index.action#techSupport)

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

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