无法验证应用程序并将其提交到Mac App Store [英] Can't validate and submit an App to the Mac App Store

查看:153
本文介绍了无法验证应用程序并将其提交到Mac App Store的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经无数次地为iOS应用进行了代码签名和提交.这次,它在Mac App Store中给我留下了深刻的印象.我反复收到相同的错误消息:

I've done codesigning and submitting for iOS apps countless times. This time it struck me with the Mac App Store. I'm repeatedly getting the same error message:

我的名字"是有效的身份.然而, 您没有关联的软件包标识.

"My Name" is a valid identity. However, you do not have the associated package identity.

我已经在堆栈溢出处识别了这2个主题: mas-code-signing-identity-private-key mac-app-package-identity-not-installed

I've recognized this 2 topics here on stack overflow: mas-code-signing-identity-private-key and mac-app-package-identity-not-installed

里面什么都没有解决我的问题.

Nothing inside there solved the problem for me.

这就是我(最可靠地)重现此消息的方式:

Thats how I (most reliably) reproduce this message:

  1. 我清理所有以"Mac Developer"或"3rd Party Mac Developer"开头的证书和私钥.当然也有过期的.
  2. 撤销Mac认证门户中的所有内容.
  3. 创建App-ID(仅进行一次)
  4. 为Mac开发创建新证书.我只能假定这与iOS开发的调试证书相当.
  5. 为Mac App创建新证书.再一次,我只能假设这可能类似于iOS开发中的发行证书.
  6. 出于完成原因,请为我的系统创建一个新的证书/配置文件.
  7. 创建生产配置文件.我只能假设这可能等同于iOS发行资料.
  8. 然后我下载所有证书混乱并正确安装.有的进入了钥匙串,有的进入了Preferences和XCode.
  9. 为确保我重新启动XCode甚至整个Mac(无论如何都不会改变令人沮丧的结果).
  10. 我转到项目构建设置并选择生产配置文件,因为我认为生产"等同于发行".在目标构建设置中更改代码签名身份也不起作用.尽管Apple在其文档中声称要提交App Store,但必须在项目构建设置中更改签名身份.
  11. 我运行一个存档版本.
  12. 我在管理器中选择档案,然后单击验证".
  13. 出现此错误消息:
  1. I clean up all my certificates and private keys starting with "Mac Developer" or "3rd Party Mac Developer". Of course also the expired ones.
  2. Revoking all the stuff inside the Mac certification portal.
  3. Create App-ID (did it only once)
  4. Create new certificate for Mac Development. I can only assume that this is comparable to the debugging certificates for iOS development.
  5. Create new certificate for Mac App. Once again I can only assume that this could be something similar to a distribution certificate in iOS-development.
  6. For completion reasons create a new certificate/profile for my system.
  7. Create a production provisioning profile. I can only assume that this might be equivalent to an iOS distribution profile.
  8. I then download all the certificate mess and install it properly. Some go into the Keychain, others got into the Preferences and XCode.
  9. For making sure I restart XCode or even the whole Mac (doesn't change the frustrating outcome anyway).
  10. I go to the project build settings and select the production provisioning profile, because I assume "production" is equivalent to "distribution". Changing the codesigning identity in the target build settings doesn't work either. While Apple claims in it's documentation that for App Store submission the signing identity has to be changed in the project build settings.
  11. I run an archive build.
  12. I select the archive in the organizer and click validate.
  13. This error message appears:

我的名字"是有效的身份.然而, 您没有关联的软件包标识.

"My Name" is a valid identity. However, you do not have the associated package identity.

我找不到指向程序包身份"一词实际含义的任何指针.最让我感到沮丧的是,Apples文档中有关代码签名和提交过程的术语混乱对我而言并不十分清楚和精确.至少没有关于iOS App提交相同过程(使用完全不同的术语)的文档那样清晰和准确.

I can't find any pointer to what the term "package identity" actually means. What is most frustrating to me is that this terminology mess in Apples documentation concerning the code signing and submission process appears not very clear and precise to me. At least not as clear and precise as the documentation for the same process concerning iOS App submission (which is using completely different terminology).

我可能理解不对?非常感谢您提供任何帮助或指示.

Probably I understood something wrong? Thanx for any help or pointer in advance.

推荐答案

好吧,对于遇到类似问题的人们,我有一些重要的提示(除了Apple文档).

OK, I have some important pointers (additional to Apples documentation) for people stumbling over similar issues.

  1. 该错误消息完全具有误导性.
  2. 不要太在意苹果文档中的每句话.

对于解决此问题,最重要的是两点:

For solving the issue, 2 points have been most significant:

  1. 除了所有其他概要文件之外,您还需要2个证书才能提交到Mac App Store(与iOS App Store提交的相同过程相反).两者都必须与它们相应的公钥和私钥对一起安装.
  1. Additional to all the other profile-mess you need 2 certificates for submission to the Mac App Store (contrary to the same process for iOS App Store submission). Both have to be installed together with their corresponding public and private key pairs.
  1. Mac App
  2. Mac Installer

  • 需要在构建目标而不是项目上设置代码签名.我不记得在哪里,但这在Apple的一份文档中被错误地描述了.
  • 最终,我的提交通过保持这两点而起作用.

    Eventually my submission worked by keeping to those 2 points.

    这篇关于无法验证应用程序并将其提交到Mac App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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