2019年12月10日,Xcode版本11.2.1,MacOS X 10.15.1
我昨天也遇到了同样的问题,我想可能是网络问题,至少看起来是这样。但是今天早上我尝试了几个不同的网络和几个VPN连接,没有一个是有效的!
这里投票最多的答案是让我在我的主目录下重置一个名为. iTMSTransporter的缓存文件夹,在一个特定的文件夹下运行一个程序iTMSTransporter,但我找不到它们。
但很快我发现它是为那些使用传统上传程序的人准备的缓存文件夹:应用程序加载器,苹果已经弃用了,在Xcode 11中再也找不到它了。然后我发现最新的Xcode已经定位iTMSTransporter在这里:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
它的缓存文件夹在这里
/Users/your_user_name/Library/Caches/com.apple.amp.itmstransporter/
我删除了我现有的缓存文件夹,并在没有任何参数的情况下运行iTMSTransporter,它很快就开始输出日志和下载一堆文件,并在2或3分钟内完成。然后我尝试再次上传我的ipa文件,它工作!!
结论:
Either the old Application Loader, or the latest Xcode, uses a Java program iTMSTransporter to process the ipa file uploading.
To function correctly, iTMSTransporter requires a set of jar files downloaded from Internet and cached in your local folder.
If your cache is somehow broken, or doesn't exist at all, directly invoking iTMSTransporter with functional parameters such as --upload-app in our case, iTMSTransporter DOES NOT WARN YOU, NOR FIX CACHE BY ITSELF, it just gets stuck there, SAYS NOTHING AT ALL! (Whoever wrote this iTMSTransporter, you seriously need to improve your programming sense).
Invoking iTMSTransporter without any parameter fixes the cache.
A functional cache is about 65MB, at Dec 10th 2019 with Xcode Version 11.2.1 (11B500)