简体   繁体   English

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

[英]Xcode 5 Error ITMS-9000 Invalid Provisioning Profile

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

Read that I need to download the distribution com.----.---- provisioning profile but I only have a APPNAME provisioning profile. 请阅读我需要下载分发com。---- .----配置文件,但我只有APPNAME配置文件。 Downloaded it anyway and still have the same issues. 无论如何下载它仍然有相同的问题。

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个月,我还会撤销任何内容吗?

AppStore submission has 2 steps: AppStore提交有两个步骤:

  1. Build archive (via Xcode Archive command) 构建存档(通过Xcode存档命令)
  2. Build ipa for submission (via Organizer / Application Loader) 构建ipa以提交(通过管理器/应用程序加载器)

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将这些步骤分开,因为它们高度相关。

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. 但是,我通常面临的问题是项目导航器列表底部(在“产品”组中)的* .app“产品”不是归档操作的输出。 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). (也许有人在这里可以解释这是如何工作的)。

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. 因此,我所做的是将“构建设置”的“代码签名”部分中的所有配置文件设置为DISTRIBUTION配置文件。 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. 这会在“Project Navigator”窗格的“Products”部分中生成一个* .app文件,该文件虽然是“Build to Run”操作的结果,但已正确签名以进行分发。 I can tell that the *.app product is "fresh" by the time stamp. 我可以通过时间戳告诉* .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.) (我承认我是一个业余爱好者,我发现供应过程有点像货物一样,我上面写的可能是一种关于什么有效的婴儿迷信。)

I had the same error. 我有同样的错误。 To fix this you must do the following: 要解决此问题,您必须执行以下操作:

When you "click" on Build, please go to: 当您在Build上“点击”时,请转到:

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中的这两个文件,您应该压缩这两个文件并使用“Application loader”上传。

Works fine, good luck 工作正常,祝你好运

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

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次上传我的应用程序,但不接受itune商店,然后我采取这个过程,并接受我的应用程序

在此输入图像描述

after then i same change as following here In plist file are show here 之后我跟这里的改变一样在plist文件中显示在这里 在此输入图像描述

then i take change to here for bundle name is wrong and "test code" space are remove after then change is 然后我更改到这里为捆绑名称是错误的,然后更改后删除“测试代码”空间 在此输入图像描述

Then I upload my app in itune and accept itune store really this is works. 然后我在itune上传我的应用程序并接受itune商店真的这是有效的。 thanks 谢谢

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

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

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

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