xcode 尝试使用 Application Loader 上传应用程序时出现 ERROR ITMS-9000

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18969988/
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 03:53:42  来源:igfitidea点击:

Getting ERROR ITMS-9000 when trying to upload an app using Application Loader

iosxcodeapp-store-connectapplication-loader

提问by Jojodmo

When I try to upload an application to iTunes Connect using application loader, I get these errors:

当我尝试使用应用程序加载器将应用程序上传到 iTunes Connect 时,出现以下错误:

Apple's web service operation was not successful

Unable to authenticate the package: (app id).itmsp

ERROR ITMS-9000: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'development' for key 'aps-environment' in 'Payload/brainademy.app/brainademy' is not supported." at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

苹果的web服务操作不成功

无法验证包:(app id).itmsp

错误 ITMS-9000:“无效的代码签名权利。您的应用程序包的签名包含 iOS 不支持的代码签名权利。具体来说,‘Payload/brainademy.app/brainademy’中关键‘aps-environment’的值‘development’是不支持。” 在 SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

This has been happening for about 36 hours, and Apple support tells me to try again in 30 minutes (which obviously doesn't work).

这已经发生了大约 36 小时,Apple 支持告诉我在 30 分钟后重试(这显然不起作用)。

I'm using the latest versions of both Xcode and application loader, I'm building using a physical iPhone, and I have the archive set to release. When I click Activity...Everything works fine, and then I see:

我正在使用最新版本的 Xcode 和应用程序加载器,我正在使用物理 iPhone 进行构建,并且我将存档设置为release. 当我单击Activity...一切正常时,然后我看到:

ERROR ITMS-9000: "Invalid Code Signing Entitlement...

错误 ITMS-9000:“无效的代码签名权利...

Then everything works fine again, until I see

然后一切正常,直到我看到

An error occurred talking to the iTunes Store

与 iTunes Store 交谈时出错

采纳答案by lnjuanj

Your app states that you are using a Push Developmententitlement. Only (Push) Productionentitlements may be used to send an app to Apple. Review your certificates (inside developer.apple.com - certificates) and locate a certificate that states: APNS Development certificate

您的应用程序声明您正在使用推送开发权利。只能使用(推送)生产权利将应用程序发送给 Apple。查看您的证书(在 developer.apple.com 内 - 证书)并找到一个声明: APNS开发证书

If you do not need that certificate, just click on the certificate and revoke it. If you need the development certificate, it means that what you need is to generate the Production APNS certificate.

如果您不需要该证书,只需单击该证书并撤销它。如果你需要开发证书,就意味着你需要的是生成Production APNS证书。

回答by Anton Gaenko

I got one because my XCode loves to play a joke on me with Code Signing Identitysection in Build Settings. For Releaseit should be iOS Distribution, not iOS Developer. Sometimes it resets.

我得到了一个,因为我的 XCode 喜欢用Build Settings 中的Code Signing Identity部分跟我开玩笑。对于Release应该是iOS Distribution,而不是iOS Developer。有时它会重置。

enter image description here

在此处输入图片说明

回答by user3122899

For anyone else that may be getting this error:

对于可能收到此错误的其他任何人:

in Target > InfoI changed my "Executable File" name and it threw this error. Just leaving it alone I find is best.

Target > Info我更改了我的“可执行文件”名称时,它抛出了这个错误。我觉得最好别管它。

回答by CpnCrunch

This just happened to me. The problem was simply that my production provisioning profile had expired, and XCode for some reason decided to use the development profile. Regenerating a new production provisioning profile fixed the problem.

这只是发生在我身上。问题只是我的生产配置文件已过期,XCode 出于某种原因决定使用开发配置文件。重新生成新的生产配置文件解决了这个问题。

回答by Jojodmo

With newer versions of Xcode, this is no longer a problem

使用较新版本的 Xcode,这不再是问题



lnjuanjfound the answer, yet there's also something else like this that could happen when your exporting an application that happened to me multiple times.

lnjuanj找到了答案,但是当您导出一个多次发生在我身上的应用程序时,也可能发生其他类似的事情。

When your exporting your archive, make sure to check save as Enterprise Ad Hoc Deployment, not Submit to iOS app store, which is the default. Then, open up Application loader, and select the .ipafile that XCode generated.

导出存档时,请确保选中另存为企业 Ad Hoc 部署,而不是提交到 iOS 应用商店,这是默认设置。然后,打开 Application loader,并选择.ipaXCode 生成的文件。