尝试将应用程序二进制文件上传到App Store Connect时Xcode 12中出现错误 [英] Error in Xcode 12 when trying to upload app binary to App Store Connect

查看:313
本文介绍了尝试将应用程序二进制文件上传到App Store Connect时Xcode 12中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OS 10.15.7的Xcode 12.1中,当我尝试将应用程序二进制文件上传到App Store Connect时,我得到了:

On Mac OS 10.15.7, in Xcode 12.1, when I try to upload my app binary to App Store Connect, I am getting:

" App Store Connect操作错误:请将iTMSTransporter更新为较新的版本.(4107)"

"App Store Connect Operation Error: Please update iTMSTransporter to a newer version. (4107)"

我试图重新启动计算机,删除.itmstransporter,以及其他各种措施,无济于事.

I've tried restarting my computer, deleting .itmstransporter, and various other things to no avail.

同时,我已经从Mac App Store下载了Transporter应用,并且能够通过导出二进制文件而不是将其上传到App Store从那里提交,但是我想重新获得其中的功能Xcode.

In the meantime, I've downloaded the Transporter app from the Mac App Store and have been able to submit from there by exporting the binary rather than uploading it to the App Store, but I'd like to regain the functionality in Xcode.

有人知道这可能是什么原因吗?

Does anyone have a clue on what may be causing this?

推荐答案

我终于能够解决这个问题.偷看我的系统,我发现了3个版本的iTMSTransporter.使用 ./iTMSTransporter -version 打印每个版本都会得到以下结果:

I finally was able to solve this. Peeking around my system I found 3 versions of iTMSTransporter. Printing the version of each using ./iTMSTransporter -version gives the following results:

  • /Applications/Transporter.app/Contents/itms/bin/的版本为2.0.0

/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin/的版本为2.1.0

/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin/ has version 2.1.0

/usr/local/itms/bin/的版本为1.9.3

/usr/local/itms/bin/ has version version 1.9.3

因此,看起来Xcode使用了/usr/local/itms 中的旧版本.删除/usr/local/itms 之后,我能够使用Xcodebuild 命令行工具在Xcode 12.2中上传我的二进制文件.

So it looks that old version in /usr/local/itms was used by Xcode. After deleting /usr/local/itms I was able to upload my binary within Xcode 12.2 and using the xcodebuild command line tool.

我还删除了〜/Library/Caches/com.apple.amp.itmstransporter ,但我不认为这是真正的问题.

I also deleted ~/Library/Caches/com.apple.amp.itmstransporter but I do not expect that this was the real issue.

更新:这今天也解决了我在Xcode 12.3中的问题,其中Distribute App和xcodebuild都卡在了一个

UPDATE: This also solved my issue today in Xcode 12.3 where Distribute App and xcodebuild both got stuck in a

通过应用商店进行身份验证

authenticating with the app store

这篇关于尝试将应用程序二进制文件上传到App Store Connect时Xcode 12中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆