不能提交的Mac OS X二进制:苹果公司声称的"错误"证书用于签署二进制 [英] Can't submit Mac OS X Binary: Apple claims the "wrong" certificate was used to sign the binary

查看:279
本文介绍了不能提交的Mac OS X二进制:苹果公司声称的"错误"证书用于签署二进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着苹果公司的指示,我无法将应用程序上传到Mac App Store的。

症状:


  1. 当我提出我的应用程序,我从苹果自动发送的电子邮件,声称我错误的证书签署。电子邮件说,我必须使用第三方Mac开发者安装证书 - 我做到了。


  2. X code4迫使我使用安装程序证书 - 它在下拉没有其他选择


  3. 如果我运行命令行codesign,其实我得到一个错误信息:这个身份不能用于签名code


事情我已经试过了,没有成功:


  1. 问苹果的帮助(1周后,我收到一封电子邮件,说他们会打电话给我)

  2. 删除我的所有证书,重启,从苹果公司创造新的证书,试图再次

  3. 从X code4出口未签名,与在命令行codesign签约,并与应用程序加载器
  4. 提交
  5. 注册内X code4,然后与应用程序加载器提交(失败,因为X $ C $ç拒绝,甚至尝试用安装证书签署)

注:应用程序本身工​​作正常,多台机器上进行测试 - 如果我做共享...,并保存到磁盘作为MAC的.app,我可以通过电子邮件的朋友等,并everythign正常工作

最后,苹果的自动电子邮件:


  

无效签名的 - 当你已经签署了您的应用程序的出现此错误
  安装不正确。那里有两个
  这个过程所需的证书:在
  第三方Mac开发者应用程序
  证书和第三方Mac开发者
  安装证书。签约的时候
  包,你需要确保你
  使用安装证书签署
  你的包。确保您
  提交时指定该证书
  通过X code管理你的应用程序或
  从运行productbuild时
  命令行。



解决方案

嗯,发现了问题:苹果的错误消息是错误的。)

他们的意思说(斜体校正)是:


  

当你签约包,你需要
  以确保您使用的是
  在X code4构建阶段的开发者证书,然后在的安装程序
  证书签署您的包


此外,与X code4,你上传的二进制文件将只使用设置释放,所以请确保您对codesign使用的开发证书,然后当你去提交(从X code4内),也可以选择使用codesign的安装的证书(应该是唯一的选择 - X code4知道它不能在此时用开发者证书)

Following Apple's instructions, I cannot upload my app to the Mac App Store.

Symptoms:

  1. When I submit my app, I get an automated email from Apple that claims I signed it with the "wrong" certificate. The email says I must use the "3rd Party Mac Developer Installer" certificate - which I did.

  2. Xcode4 forces me to use the "Installer" certificate - it has no other options in the drop-down

  3. If I run codesign from the command line, I actually get an error message: "this identity cannot be used for signing code"

Things I've tried, with no success:

  1. Asking Apple for help (after 1 week, I got an email saying they would get back to me)
  2. Deleting all my certificates, rebooting, creating new certificates from Apple, trying again
  3. Exporting UNsigned from Xcode4, signing with codesign on the commandline, and submitting with Application Loader
  4. Signing inside Xcode4, then submitting with Application Loader (fails because Xcode refuses to even TRY to sign with the Installer cert)

NB: the app itself works fine and is tested on multiple machines - if I do "Share..." and save to disk as a mac .app, I can email that to friends etc and everythign works fine.

Finally, Apple's automated-email:

Invalid Signature - This error occurs when you have signed your app's installer incorrectly. There are two certs required for this process: the "3rd Party Mac Developer Application" cert and the "3rd Party Mac Developer Installer" cert. When signing your package, you need to ensure that you are using the Installer cert to sign your package. Ensure that you are specifying this cert when submitting your app via the Xcode Organizer or when running productbuild from the command line.

解决方案

Ah, found the problem: Apple's error message is wrong :).

What they meant to say (correction in italics) was:

"When signing your package, you need to ensure that you are using the Developer cert during the Xcode4 build phase, and then the Installer cert to sign your package"

Also, with Xcode4, the binary you upload will ONLY use the settings for "Release", so make sure that you've set "Release" to "Codesign using Developer cert", and then when you go to submit (from inside Xcode4), ALSO select "Codesign using Installer cert" (should be the only option - Xcode4 knows it cannot use a Developer cert at this point)

这篇关于不能提交的Mac OS X二进制:苹果公司声称的"错误"证书用于签署二进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆