xcode 4.2,用于分发的代码签名

发布于 2024-12-10 13:06:42 字数 1840 浏览 0 评论 0原文

我已经完成了我的应用程序的编码,并花了 2-3 天的时间来弄清楚我在构建要上传到苹果应用程序商店的存档时做错了什么以及为什么做错了。

1 - 我确认我的新应用程序处于“等待上传”状态。

2 - 我已下载并双击 WWDR 中间证书。已验证它存在于我的钥匙链中。

3 - 我确认我的分发证书没有过期。它的有效期是从今天起一年。它的状态是“已发布”

4 - 我已经创建了应用程序 ID。我验证了应用程序名称空间部分与我的应用程序名称空间完全相同。该应用程序所处的状态是: - 推送通知:可配置(黄色) - 在应用程序购买中:启用(绿色)(我想将其关闭,但没有办法) - 游戏中心:启用(绿色)(我想关闭它,但现在有办法了) - iCloud:可配置(黄色)

5 - 我已验证我的分发规定对于正确的应用程序 ID 而言是“活动的”。

6 - 我已经下载并安装了所有 3 个: a - WWDR 中级证书 b - 分销证书 c - 分发配置文件

我有 Xcode 4.2 和 IOS 5。两天前我在应用商店更新了最新版本的 XCODE。

在 Xcode 中 ->组织者 - 设备: 在“开发人员配置文件”下,我已验证我拥有正确的分发配置文件 在“Provisioning Profiles”下,我已经验证我有正确的配置文件可以

在 Xcode 中分发 ->项目->构建设置: 我已经验证我在“代码签名身份”下为调试和发布类型指定了正确的代码签名条款。 调试:我指向我的开发人员条款 发布:我指向

Xcode 中的发行版规定 ->目标->构建设置 我做了与上面描述的项目相同的事情。

我将“代码签名权利”留空 我将“代码签名资源规则路径”留空 我将“其他代码签名标志”留空

我修改了“iOS 设备”的架构 对于“存档”,我指定: “构建配置”下的“发布” “存档名称”下的“nameOfMyApp” 我已检查“在管理器中显示存档”

我确保我的项目已针对所有静态库进行编译。

然后我点击“产品”-> “存档”

项目编译,没有编译错误。 (我验证了我的应用程序在我的 iPhone 上运行)

在存档结束时,会弹出一个用于协同设计的窗口。该消息用精确的字母表示: “codesign 希望使用钥匙串中的密钥“”进行签名。” 我允许。 (“”是否应该有“key”以外的其他名称?)

单击“允许”后,我看到“构建成功”,

我转到组织者 - > >档案,我在本节下没有看到任何项目。组织者在左窗格中显示“无档案”。和主面板。

我转到显示存档的路径,我看到存档文件,但大小是“零字节”

所以我搜索此论坛寻求帮助,有人发布了指南的链接: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933

我非常详细地浏览了此链接,但仍然没有运气。

我已经在这个问题上思考了很长时间,它让我发疯。没有返回错误,因此我不知道如何解决这个问题。

有人会帮我吗?

另外,苹果是否提供电话号码来支持此类问题?如果有的话,请在这里提供。

经过 3 个月的开发,我的应用程序已经完成,并且只是放在我的计算机上,而不是在应用程序商店中。叹......

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.

1 - I verified that my new app is in "Waiting for Upload" state.

2 - I have download and double click on the WWDR intermediate certificate. Verified that this exist in my key chains.

3 - I verified that my distribution certificate is not expired. It's expiration date is a year from today. Its status is "Issued"

4 - I have created app 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)

5 - I have verified that my distribution provision is "Active" for the correct application 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

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.

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

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.
debug: i point to my developer provision
release: i point to my distribution provision

in Xcode -> target -> build setting
i did the same as the project describe above.

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"

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)

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"?)

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. 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

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. sigh......

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浮云落日 2024-12-17 13:06:42

您描述的方法与我最近使用的方法略有不同。尝试遵循本指南:

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

它工作得很好对我来说,这似乎是一种与你不同的方法 做过。它直接使用 xcode 接口来完成整个上传过程。 (也就是说,您不需要通过互联网浏览器手动上传文件)

编辑:

另请尝试: http://www.weston-fl.com/blog/?p=2442

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/

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. (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

—━☆沉默づ 2024-12-17 13:06:42

当我存档应用程序时,我遇到了同样的问题,我收到消息“codesign 希望使用钥匙串中的密钥 进行签名。” 应该是“我的分发证书名称”,执行了所有可能出错的步骤:

  • 钥匙串中的分发证书正确,
  • 删除了所有旧证书,
  • 检查了 mobileprovision 在终端中是否有效

,但是那不起作用。
最后联系了苹果支持并指出我https://developer.apple。 com/legacy/library/technotes/tn2250/_index.html
-->配置故障排除

按照以下步骤操作(更多详细信息,请参阅链接):

  • 删除钥匙串中的所有分发证书
  • 还删除配置文件
  • 吊销开发人员帐户站点上的证书
  • 创建新证书
  • 更新分发配置文件(在站点上)
  • 下载并拖放xcode 中的新证书和配置文件

注意: 在故障排除会话中,它说您可以使用 Xcode 续订,但我没有为我工作,因为我收到消息“已经有一个证书请求待处理”,手动完成了这个技巧...

I had the same issue when I archived the app, I got the message "codesign wants to sign using key <key> in your keychain." <key> should have been 'my distribution certificate name', went to all the steps what could be wrong:

  • distribution certificate was correct in keychain
  • deleted all old certificates
  • checked if the mobileprovision was valid in terminal

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

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

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...

雪若未夕 2024-12-17 13:06:42

我曾经遇到过类似的问题,这是因为我在4.2之后安装了xcode 4.0,通过重新安装xcode 4.2解决了这个问题。你也许可以尝试一下。

如需技术支持,您可以请求 tsi (http://developer.apple.com/membercenter/index.action#techSupport)

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. You may have a try.

For technical support, you may request tsi (http://developer.apple.com/membercenter/index.action#techSupport)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文