尝试将应用程序二进制文件上传到 App Store Connect 时出现 Xcode 12 错误 [英] Error in Xcode 12 when trying to upload app binary to App Store Connect
问题描述
在 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 来从那里提交,但我想重新获得该功能代码.
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 版
/usr/local/itms/bin/
版本为 1.9.3
所以看起来 /usr/local/itms
中的旧版本被 Xcode 使用了.删除 /usr/local/itms
后,我能够在 Xcode 12.2 中上传我的二进制文件并使用 xcodebuild
命令行工具.
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屋!