Xcode 5 错误 ITMS-9000 无效的配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20865617/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:29:28  来源:igfitidea点击:

Xcode 5 Error ITMS-9000 Invalid Provisioning Profile

iosxcodeprovisioning-profile

提问by downhoard

I've downloaded and checked all of my distribution certificates, as well as provisioning profiles. I keep getting this error message:

我已经下载并检查了我的所有分发证书以及配置文件。我不断收到此错误消息:

ERROR ITMS-9000: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.-----.---- [---.app] is invalid. [Missing code-signing certificate.] .....

ERROR ITMS-9000: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.-----.---- [---.app] is invalid. [Missing code-signing certificate.] .....

Read that I need to download the distribution com.----.---- provisioning profile but I only have a APPNAME provisioning profile. Downloaded it anyway and still have the same issues.

阅读我需要下载分发 com.----.---- 配置文件,但我只有一个 APPNAME 配置文件。还是下载了,还是一样的问题。

I've gone through and downloaded all possible combinations, but still can't get anything to work with application loader. Everything before has worked fine until I had to upgrade to a new MBP.

我已经浏览并下载了所有可能的组合,但仍然无法使用应用程序加载器进行任何操作。之前一切正常,直到我不得不升级到新的 MBP。

Do I revoke anything even though it's valid for another 6 months?

即使还有 6 个月的有效期,我是否可以撤销任何内容?

回答by HKTonyLee

AppStore submission has 2 steps:

AppStore提交有2个步骤:

  1. Build archive (via Xcode Archive command)
  2. Build ipa for submission (via Organizer / Application Loader)
  1. 构建存档(通过 Xcode Archive 命令)
  2. 构建用于提交的 ipa(通过 Organizer / Application Loader)

Each of them require certificate, provisioning and entitlements (in provisioning) for separate (but related) use.

它们中的每一个都需要证书、供应和权利(在供应中)以供单独(但相关)使用。

You should use the same provisioning for the two steps. If you can't find the exact old provisioning, you may consider re-archive the app. I don't know why Apple splits these steps as they are highly related.

您应该对这两个步骤使用相同的配置。如果您找不到确切的旧配置,您可以考虑重新存档该应用程序。我不知道为什么 Apple 将这些步骤分开,因为它们高度相关。

回答by Soferio

I also have this issue.

我也有这个问题。

It seems to me that the key is to make sure that the "product" you are dealing with has been associated with a DISTRIBUTION provisioning profile that has been signed by the code signing identity which has the right to upload items to the app store (typically a company, or an individual developer).

在我看来,关键是确保您正在处理的“产品”已与已由代码签名身份签名的 DISTRIBUTION 配置文件相关联,该代码签名身份有权将项目上传到应用商店(通常是公司或个人开发商)。

However, the problem I typically face is that the *.app "product" at the foot of the project navigator list (in the 'products' group) is NOT the output of the archive operation. I can tell this from the time stamp. I do not know where the archive operation places its product. (Perhaps someone here can explain how this works).

但是,我通常面临的问题是项目导航器列表(在“产品”组中)底部的 *.app “产品”不是存档操作的输出。我可以从时间戳中看出这一点。我不知道存档操作将其产品放在哪里。(也许这里有人可以解释这是如何工作的)。

As a consequence, what I do is I set ALL the provisioning profiles in the 'Code Signing' section of the 'Build Settings' to the DISTRIBUTION provisioning profile. I then "BUILD for RUN". This results in a *.app file in the 'Products' section of the 'Project Navigator' pane that, while it is the result of a "Build to Run" operation, is properly signed for distribution. I can tell that the *.app product is "fresh" by the time stamp.

因此,我所做的是将“构建设置”的“代码签名”部分中的所有配置文件设置为 DISTRIBUTION 配置文件。然后我“为运行而构建”。这会在“项目导航器”窗格的“产品”部分生成一个 *.app 文件,虽然它是“构建以运行”操作的结果,但已正确签名以供分发。我可以通过时间戳判断 *.app 产品是“新鲜的”。

It is then this *.app product which I compress and deploy using Application Loader.

然后我使用 Application Loader 压缩和部署这个 *.app 产品。

This seemed to work - today.

这似乎有效 - 今天。

(I confess that I am an amateur and I find the provisioning process somewhat cargo-cult-like, and what I write above may be a kind of infantile superstition about what works.)

(我承认我是一个业余爱好者,我发现供应过程有点像货物崇拜,我上面写的可能是一种关于什么有效的幼稚迷信。)

回答by Jordi

I had the same error. To fix this you must do the following:

我有同样的错误。要解决此问题,您必须执行以下操作:

When you "click" on Build, please go to:

当您“单击”构建时,请转到:

Product -> Build for -> Profiling

产品 -> 构建 -> 分析

Your file (.app) are created.

您的文件 (.app) 已创建。

To achieve this archive it should do the next step:

要实现此存档,它应该执行下一步:

XCode -> Preferences ->

XCode -> 首选项 ->

Choose the "locations" option, and you will get a screen with different options and routes. Select the route: Derived Data.

选择“位置”选项,您将看到一个包含不同选项和路线的屏幕。选择路线:派生数据。

You take the app file, and the other file App.dSYM generated in the default folder "release-iphoneos" ... to update these two files in iTunes, you should compress these two files and upload with "Application loader".

您将应用程序文件,以及在默认文件夹“release-iphoneos”中生成的另一个文件App.dSYM ...要在iTunes中更新这两个文件,您应该压缩这两个文件并使用“应用程序加载器”上传。

Works fine, good luck

工作正常,祝你好运

回答by Ketan Patel

This is my proble to upload my app ..

这是我上传我的应用程序的问题..

I try to more then 10 time to upload my app but not accept itune store then i take this process and after accept my app

我尝试超过 10 次上传我的应用程序但不接受 iTunes 商店然后我接受这个过程并接受我的应用程序

enter image description here

在此处输入图片说明

after then i same change as following here In plist file are show here enter image description here

之后,我在此处进行了与以下相同的更改 在 plist 文件中显示在此处 在此处输入图片说明

then i take change to here for bundle name is wrong and "test code" space are remove after then change is enter image description here

然后我更改到此处,因为包名称错误,然后删除“测试代码”空间,然后更改为 在此处输入图片说明

Then I upload my app in itune and accept itune store really this is works. thanks

然后我在 iTunes 中上传我的应用程序并接受 iTunes 商店真的这是有效的。谢谢

回答by anshul-systematix

Just clean all the things.

把所有的东西都清理干净。

Check the developer/distribution certificate and mobile provision profile properly created, if not then revoke them from developer account and create all new one.

检查正确创建的开发者/分发证书和移动供应配置文件,如果没有,则从开发者帐户中撤销它们并创建所有新的。

Remove all profiles from /Users/yourSystemName/Library/MobileDevice/Provisioning Profiles

从 /Users/yourSystemName/Library/MobileDevice/Provisioning Profiles 中删除所有配置文件

Now, Export all certificates and keys from your keychain and Save them as backup for using them again.

现在,从您的钥匙串中导出所有证书和密钥,并将它们保存为备份以备再次使用。

Now install your developer/Distribution certificate first and install provisioning profile. And upload your application. This is tested way and should resolve your issue. Thanks.

现在首先安装您的开发人员/分发证书并安装配置文件。并上传您的应用程序。这是经过测试的方式,应该可以解决您的问题。谢谢。

回答by James Harnett

Just clean your project files - that worked for me after receiving this error.

只需清理您的项目文件 - 在收到此错误后对我有用。

回答by Tatiana

You should also download the certificate from Apple and also put p12 of this certificate (=private exported certificate key) file to your keychain.

您还应该从 Apple 下载证书,并将该证书的 p12(=私人导出的证书密钥)文件放入您的钥匙串。