无法使用 Xcode 7.1 上传到 App Store

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

Unable to upload to App Store with Xcode 7.1

iosxcodeuploadapp-storeapp-store-connect

提问by Leverin

When trying to upload an app to App Store in Xcode (7.1) I'm prompted with this error message:

尝试在 Xcode (7.1) 中将应用程序上传到 App Store 时,我收到以下错误消息的提示:

iTunes Store operation failed. You are not authorised to use this service.

iTunes Store 操作失败。您无权使用此服务。



The steps I go through when trying to upload

我尝试上传时经历的步骤

  1. Product -> Archive which completes successfully
  2. Window -> Organizer where I select my app in the left pane. I then choose my most recent archive, press "Upload to App Store..." and pick the relevant development team.
  1. 产品 -> 存档成功完成
  2. 窗口 -> 管理器,我在左侧窗格中选择我的应用程序。然后我选择我最近的存档,按“上传到 App Store...”并选择相关的开发团队。

At that point I'm prompted with the error message "iTunes Store operation failed. You are not authorized to use this service for provider: "

那时,我收到错误消息提示“iTunes Store 操作失败。您无权为提供商使用此服务:”

I find this odd as my account in the chosen team has admin rights.

我觉得这很奇怪,因为我在所选团队中的帐户具有管理员权限。

My account is also added to the team in iTunes Connect, where my roles are set to App Manager, Reports and Sales.

我的帐户也被添加到 iTunes Connect 的团队中,我的角色被设置为应用程序经理、报告和销售。



Attempts to solve the issue

解决问题的尝试

I have:

我有:

  1. Deleted my account in Xcode -> Preferences -> Accounts and added it again.

  2. Generated a new archive after deleting and re-adding my account in Xcode.

  3. Restarted Xcode.

  4. Opened Application Loader via Xcode -> Open Developer Tool -> Application Loader. This seems to have helped many others running into similar issues. I can, however, not login due to this:

  1. 在 Xcode -> Preferences -> Accounts 中删除我的帐户并再次添加它。

  2. 在 Xcode 中删除并重新添加我的帐户后生成了一个新存档。

  3. 重新启动Xcode。

  4. 通过 Xcode 打开 Application Loader -> Open Developer Tool -> Application Loader。这似乎帮助了许多其他人遇到了类似的问题。但是,由于以下原因,我无法登录:

Your user account is attached to several iTunes providers. Create separate accounts for each provider before logging in.

您的用户帐户与多个 iTunes 提供商关联。在登录之前为每个提供商创建单独的帐户。



At the moment I'm out of ideas on what might cause the issue, let alone how to solve it. Do you have any?

目前我对可能导致问题的原因一无所知,更不用说如何解决它了。你有什么?

回答by Victor Dias

I've faced the same issue (account is attached to several iTunes providers) when I've downloaded Application Loader from iTunes Connect. The link on iTunes Connect download the version 3.0 of application loader that not supports multi-accounts.

当我从 iTunes Connect 下载 Application Loader 时,我遇到了同样的问题(帐户附加到多个 iTunes 提供商)。iTunes Connect 上的链接下载不支持多帐户的应用程序加载程序 3.0 版。

To download the latest version and use multi-accounts you should download the latest version of Xcode. Application Loader is part of Xcode (Xcode > Open Developer Tool > Application Loader). You can download Xcode directly from the Mac App Store.

要下载最新版本并使用多帐户,您应该下载最新版本的 Xcode。Application Loader 是 Xcode 的一部分(Xcode > Open Developer Tool > Application Loader)。您可以直接从 Mac App Store 下载 Xcode。

For more information on this delivery mechanism, see the Application Loader User Guide.

有关此传送机制的更多信息,请参阅Application Loader 用户指南

回答by Niraj Adhikari

I have found a workaround to this issue. Go to iTunes connect and login with the admin itunes connect account. Create a new apple id with a new email account. Make that account the admin under users and roles.

我找到了解决此问题的方法。转到 iTunes Connect 并使用 admin iTunes Connect 帐户登录。使用新的电子邮件帐户创建新的 Apple ID。将该帐户设为用户和角色下的管理员。

After that sign in at least once to your new itunes connect account. Then proceed your app submission with application loader with the new account. I was facing the exact same issue and i fixed it this way!

之后,至少登录一次您的新 iTunes Connect 帐户。然后使用新帐户使用应用程序加载器继续您的应用程序提交。我面临着完全相同的问题,我以这种方式修复了它!

回答by Eric Conner

Ben's answer notes this, but I want to call it out:

Ben 的回答指出了这一点,但我想说出来:

Make sure the bundle id of your app matches the expected bundle id in iTunes Connect.

确保您的应用程序的 bundle id 与 iTunes Connect 中的预期 bundle id 匹配。

This error message occurred for me when the bundle ids did not match.

当捆绑包 ID 不匹配时,我会出现此错误消息。

回答by Ben Lachman

The Your user account is attached to several iTunes providers. Create separate accounts for each provider before logging in.error seems to be a limitation/mismatch between Xcode and the new multi-provider/provider switching feature introduced to iTunes Connect on 11/13/2015.

Your user account is attached to several iTunes providers. Create separate accounts for each provider before logging in.错误似乎是 Xcode 与2015年 11 月 13 日引入 iTunes Connect 的新多提供商/提供商切换功能之间的限制/不匹配。

To get around it, make sure you've already created the app you are trying to submit in iTunes Connect under the correct provider. You'll also need to make sure the bundle ID matches on the archived app and the record for it you create in iTC.

要解决这个问题,请确保您已经在正确的提供商下创建了要在 iTunes Connect 中提交的应用程序。您还需要确保包 ID 与存档的应用程序和您在 iTC 中为其创建的记录匹配。

Additionally, your account must have the developer, app manager or admin role to be able to successfully upload builds.

此外,您的帐户必须具有开发人员、应用程序管理员或管理员角色才能成功上传构建。

回答by Flexicoder

I found that when I switched the project from manual managed signing, to automatically manage signing the issue hit me (I'd done this to add a new device for testing) - switching back to manual signing fixed the issue.

我发现当我将项目从手动管理签名切换到自动管理签名时,我遇到了这个问题(我这样做是为了添加一个新设备进行测试) - 切换回手动签名解决了这个问题。