无法将 Xcode 存档提交到 Itunes Connect。“上传档案:将 API 使用情况发送到 Itunes Connect”

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

Cannot submit Xcode Archive to Itunes Connect. "Uploading Archive: Sending API Usage to Itunes Connect"

xcodemacosapp-storeapp-store-connectapplication-loader

提问by jose gabriel

Hello Ive sent a version of my app one week ago through Xcode 6 and it didn't have any problem. Today Ive tried to upload a new version of my App via Xcode and when uploading, the progress bar stays in "Sending API usage to Itunes Connect". It doesn't give me any errors, nor warnings, it just stays like that forever.

你好,我一周前通过 Xcode 6 发送了我的应用程序的一个版本,它没有任何问题。今天我尝试通过 Xcode 上传我的应用程序的新版本,上传时,进度条停留在“将 API 使用情况发送到 Itunes Connect”。它没有给我任何错误,也没有警告,它只是永远保持这样。

Ive been looking in google and also in here, and found a lot of solutions (ones more logical than others). Well, Ive tried ALL those solutions, I've created new provision profiles, restarted my computer, restart Xcode, changed "netinfo", connect to new wifi, among others.

我一直在 google 和 here 中寻找,并找到了很多解决方案(比其他解决方案更合乎逻辑)。好吧,我已经尝试了所有这些解决方案,我已经创建了新的配置文件,重新启动了我的计算机,重新启动了 Xcode,更改了“netinfo”,连接到新的 wifi 等等。

Its really driving me crazy since I didn't do anything, it just stopped working.

它真的让我发疯,因为我什么也没做,它只是停止工作。

There are a lot of question with this same topic on the internet (including StackOverflow) and I think there is no one ultimate answer that really explain why this happen. Ive seen very detailed answers but none of them worked for me.

互联网上有很多关于同一主题的问题(包括 StackOverflow),我认为没有一个最终答案可以真正解释为什么会发生这种情况。我看过非常详细的答案,但没有一个对我有用。

Some of this questions are:

其中一些问题是:

1) Can't Submit App to App Store: “Sending API Usage to iTunes Connect” either times out or loses connection.

1) 无法向 App Store 提交应用程序:“将 API 使用情况发送到 iTunes Connect”超时或失去连接。

2) Application Loader (Apple) stuck on “Sending API usage to iTunes Connect”.

2) Application Loader (Apple) 停留在“将 API 使用情况发送到 iTunes Connect”。

3) Stuck on “Sending API usage to iTunes Connect”.

3) 坚持“将 API 使用情况发送到 iTunes Connect”。

If I export the archive into an .ipa I can upload it with application loader. I don't know why I can't do it with Xcode. Ive always used Xcode for this.

如果我将存档导出为 .ipa,我可以使用应用程序加载器上传它。我不知道为什么我不能用 Xcode 做到这一点。为此,我一直使用 Xcode。

The reason I want to know how to do it with Xcode is that I don't know if uploading only the .ipa and configuring in app purchases only directly via itunes connect's webpage without doing it in application loader(the button that says "New In-app Purchases" template) , will also work.

我想知道如何使用 Xcode 进行操作的原因是,我不知道是否仅上传 .ipa 并仅通过 itunes connect 的网页直接在应用程序购买中进行配置,而无需在应用程序加载程序中执行此操作(显示“New In”的按钮) -app 购买”模板),也可以使用。

I hope someone could help me.

我希望有人可以帮助我。

Thank you.

谢谢你。

回答by sivi

  1. minimise the organiser window

  2. reopen it from mac floating menubar

  1. 最小化管理器窗口

  2. 从 mac 浮动菜单栏重新打开它

This seems to be refreshing the connection while online. Works for me.

这似乎是在线时刷新连接。对我来说有效。

回答by Leonel Folmer

I had this same problem a few minutes ago, let me explain what I did:

几分钟前我遇到了同样的问题,让我解释一下我做了什么:

  1. Restart your router/modem
  2. Restart your Mac
  3. Set the active scheme in Xcode for iOS Device
  4. Make a new archive
  5. Validate before submit
  1. 重新启动路由器/调制解调器
  2. 重新启动您的 Mac
  3. 在 Xcode 中为 iOS 设备设置活动方案
  4. 新建一个存档
  5. 提交前验证

These steps work perfectly for me, hope that helps.

这些步骤对我来说非常有效,希望能有所帮助。

回答by Abdullah Md. Zubair

I also faced similar problem. I can't upload from my office, but can upload from my home. I assumed that my office's internet connection has problem with Apple server. If you get problem with Xcode to upload, you can download Application Loader separately from iTunes connect and try with that and wait for passing sending api usage state.

我也遇到了类似的问题。我不能从我的办公室上传,但可以从我家上传。我认为我办公室的互联网连接在 Apple 服务器上有问题。如果您在上传 Xcode 时遇到问题,您可以从 iTunes 连接单独下载 Application Loader 并尝试使用它并等待传递发送 api 使用状态。

回答by Nick Gage

Try doing this:

尝试这样做:

cd ~
mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

cd ~
mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

Seems to be working for a lot of others - https://forums.developer.apple.com/thread/76803

似乎为很多其他人工作 - https://forums.developer.apple.com/thread/76803

回答by Ken Corey

I couldn't make this work on XCode 7.1.

我无法在 XCode 7.1 上完成这项工作。

I had to upgrade to 7.1.1, which allowed me to export the binary for App Store Deployment, and then use the Application Loader to upload the app for review.

我不得不升级到 7.1.1,这让我可以导出 App Store 部署的二进制文件,然后使用 Application Loader 上传应用程序以供审核。

Absolutely crazy, Apple.

绝对疯了,苹果。

回答by Ian Belcher

I've found that instead of restarting your router and machine etc, simply clicking 'Renew DHCP Lease' in the TCP/IP settings of your internet device (under Network in System Preferences) solves the issue much quicker and easier, for me anyway.

我发现无需重新启动路由器和机器等,只需单击 Internet 设备 TCP/IP 设置中的“更新 DHCP 租约”(在“系统偏好设置”下的“网络”下)即可更快、更轻松地解决问题,无论如何对我来说。

Just another error that makes working in Apples eco-system all the more fun and exciting...

另一个错误让在 Apple 生态系统中的工作变得更加有趣和令人兴奋……

回答by Todd

There was no one particular procedure that seemed to do it in my case: restarted router, restarted Mac, restarted Xcode, recreated profiles on developer website, viewed them in Xcode, recreated archives, attempted just validating for App Store. All of these things over and over again.

在我的情况下,似乎没有一个特定的程序可以做到这一点:重新启动路由器、重新启动 Mac、重新启动 Xcode、在开发人员网站上重新创建配置文件、在 Xcode 中查看它们、重新创建存档、尝试仅验证 App Store。所有这些事情一遍又一遍。

My experience has been that you should just kept trying until suddenly it works. Which is sadly not the magic button to click that I was looking for.

我的经验是,您应该一直尝试,直到它突然起作用为止。遗憾的是,这不是我一直在寻找的点击魔法按钮。

Possibly the fact that I managed only twice in the last dozen or so upload attempts in the morning from here in the UK (making it approx 02:30 over there in the US), indicates it's perhaps an iTunes overloaded problem.

可能是因为我在早上从英国这里(大约在美国那边大约 02:30)上传的最后十几次尝试中只成功了两次,这表明这可能是 iTunes 过载的问题。

回答by Renato Back

I had the same problem, though none of the suggested steps solved my problem, other than using the Application Loader.

我遇到了同样的问题,尽管除了使用 Application Loader 之外,建议的步骤都没有解决我的问题。

However, one thing that bothered me was a warning message saying that:

然而,让我困扰的一件事是一条警告消息,内容如下:

The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message.

生成的 API 分析文件太大。我们无法在交付前验证您的 API 使用情况。这只是一条信息性消息。

It came to me that it might be the reason why Xcode's uploading might be messed up, since it locks at the Sending API usage to iTunes Connect.

我想到这可能是 Xcode 上传可能会出错的原因,因为它锁定在Sending API usage to iTunes Connect.

Some people mention it in some posts here in stackoverflow.

有些人在 stackoverflow 的一些帖子中提到了它。

回答by keshav

For me Network is not allowing to upload the build as office wireless is having firewall so I had to move to other wi-fi to upload the build.

对我来说,网络不允许上传构建,因为办公室无线有防火墙,所以我不得不转移到其他 Wi-Fi 来上传构建。

回答by Gordonium

Just adding another possible answer here that fixed it for me.

只是在这里添加另一个可能的答案,为我解决了这个问题。

I was on a VPN at work. Disabling this and trying again worked.

我在工作时使用 VPN。禁用此功能并重试有效。