上传 iOS 应用程序时,应用程序加载程序卡在“使用 iTunes 商店进行身份验证”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22443425/
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
Application Loader stuck at "Authenticating with the iTunes store" when uploading an iOS app
提问by rufusrobot
We have been trying to submit an app to the iTunes store using Application Loader for three days and keep getting stuck at the "Authenticating with the iTunes store"step.
We have read many forums (including stackoverflow) and tried what was suggested:
三天来,我们一直在尝试使用 Application Loader 向 iTunes 商店提交应用程序,但一直卡在“使用 iTunes 商店进行身份验证”步骤中。
我们已经阅读了许多论坛(包括 stackoverflow)并尝试了建议的内容:
- making a new provisioning profile
- using different or multiple versions of Application Loader
- changing proxy settings
- rebooting the Mac
- uploading at a different time of the day, etc.
- 制作新的配置文件
- 使用不同或多个版本的 Application Loader
- 更改代理设置
- 重新启动 Mac
- 在一天中的不同时间上传等。
We have even left it running overnight and have not had success with getting past this step. Unfortunately, no feedback is given about what the issue may be, and we have not gotten any error messages. We have submitted multiple apps without any difficulty in the past but are completely stuck this time!
How were you able to solve it?
我们甚至让它在一夜之间运行,并且没有成功通过这一步。不幸的是,没有给出关于问题可能是什么的反馈,我们也没有收到任何错误消息。我们过去提交了多个应用程序没有任何困难,但这次完全卡住了!
你是怎么解决的?
回答by AshHimself
This only started happening to me today (May 2017) and no answers in this thread solved my issue. The resolution for me was from here;
这只是今天(2017 年 5 月)才开始发生在我身上,该线程中没有任何答案解决了我的问题。我的决心来自这里;
https://forums.developer.apple.com/thread/76803
https://forums.developer.apple.com/thread/76803
Open Terminal
. Change to home directory,
打开Terminal
。切换到主目录,
cd ~
Move the current transporter directory,
移动当前的传输器目录,
mv .itmstransporter/ .old_itmstransporter/
Invoke the following file to let Transporter update itself.
调用以下文件让 Transporter 自行更新。
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
Wait till it updates, then open Xcode and attempt upload.
等到它更新,然后打开 Xcode 并尝试上传。
回答by Conor
You have to agree to a new sign up in Application Loader. Select "Application Loader" under the "Xcode -> Open Developer Tool" menu (the first menu to the right of the Apple in the menu bar). Once you open Application Loader there will be a prompt to agree to new terms and then to login again into your iTunes account. After this any upload method will work.
您必须同意在 Application Loader 中进行新注册。选择“Xcode -> Open Developer Tool”菜单下的“Application Loader”(菜单栏中苹果右侧的第一个菜单)。打开 Application Loader 后,将提示您同意新条款,然后再次登录您的 iTunes 帐户。在此之后,任何上传方法都将起作用。
回答by Dmitry
Just wait. In a few minutes all will be ok.
等一下。几分钟后一切都会好起来的。
回答by Quasar
I was stuck at "Authenticating with the iTunes Store" today. I had used the same version and build number as a previous submission. After I updated the build number, the upload went fine. I don't know if it's related, or if it was a coincidence.
我今天被困在“使用 iTunes Store 进行身份验证”。我使用了与之前提交相同的版本和内部版本号。更新内部版本号后,上传正常。不知道是不是有关系,还是巧合。
回答by Saifee
I had the same issue for months, I just removed hotspot shield and private tunnel applications from my computer and tried to upload my app and everything worked just fine. so I suggest if you have installed any VPN application on your computer, remove the application and then try uploading your app from either application loader or xcode's organizer.
几个月来我遇到了同样的问题,我只是从我的计算机中删除了热点屏蔽和私人隧道应用程序,并尝试上传我的应用程序,一切正常。所以我建议如果您在计算机上安装了任何 VPN 应用程序,请删除该应用程序,然后尝试从应用程序加载器或 xcode 的管理器上传您的应用程序。
回答by ZhouX
Dec 10th 2019, Xcode Version 11.2.1, MacOS X 10.15.1
2019 年 12 月 10 日,Xcode 版本 11.2.1,MacOS X 10.15.1
I was facing exactly same issue yesterday and I thought it might be network issues, at least it looks like so. But this morning I had tried couple different networks and several VPN connections, none of them is working!
昨天我遇到了完全相同的问题,我认为这可能是网络问题,至少看起来是这样。但是今天早上我尝试了几个不同的网络和几个 VPN 连接,它们都不起作用!
The highest voted answer here asks me to reset a cache folder named .itmstransporterunder my home dir, the run a program iTMSTransporterunder a specific folder, but I can't find both of them.
这里投票最高的答案要求我在我的主目录下重置一个名为.itmstransporter的缓存文件夹,在特定文件夹下运行一个程序iTMSTransporter,但我找不到它们。
But soon I figured that it is the cache folder for the people who uses the legacy uploader program: Application Loader, which is deprecated by Apple and can be no longer found in Xcode 11. Then I found that the latest Xcode has located iTMSTransporterhere:
但很快我发现它是使用旧上传器程序的人的缓存文件夹:Application Loader,它被Apple弃用并且在Xcode 11中再也找不到。 然后我发现最新的Xcode在这里找到了iTMSTransporter:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
And its cache folder is here:
它的缓存文件夹在这里:
/Users/your_user_name/Library/Caches/com.apple.amp.itmstransporter/
I removed my existed cache folder, and run iTMSTransporter without any parameter, it soon started to output logs and download a bunch of files, and finished in 2 or 3 minutes. Then I tried again to upload my ipa file, it works!!!
我删除了我现有的缓存文件夹,并在没有任何参数的情况下运行iTMSTransporter ,它很快开始输出日志并下载一堆文件,并在2或3分钟内完成。然后我再次尝试上传我的 ipa 文件,成功了!!!
CONCLUTION:
结论:
- Either the old Application Loader, or the latest Xcode, uses a Java program iTMSTransporterto 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)
- 无论是旧的Application Loader,还是最新的Xcode,都使用Java程序iTMSTransporter来处理ipa文件的上传。
- 要正常运行,iTMSTransporter 需要一组从 Internet 下载并缓存在本地文件夹中的 jar 文件。
- 如果您的缓存以某种方式损坏或根本不存在,请直接使用功能参数调用 iTMSTransporter,例如在我们的示例中使用 --upload-app,iTMSTransporter 不会警告您,也不会自行修复缓存,它只会卡在那里,什么都没说!(谁写了这个 iTMSTransporter,你真的需要提高你的编程意识)。
- 不带任何参数调用 iTMSTransporter 修复缓存。
- 2019 年 12 月 10 日,使用 Xcode 版本 11.2.1 (11B500) 的功能缓存约为 65MB
回答by Aanchal Chaurasia
Try answer mentioned in this Reference Link, it really worked for me and for others as well.
试试这个参考链接中提到的答案,它真的对我和其他人都有效。
Mentioning answer here as well. Open Terminal and run:
在这里也提到答案。打开终端并运行:
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"
iTMSTransporter will then update itself, then you can try uploading in XCode again or via application loader.
然后 iTMSTransporter 将自行更新,然后您可以再次尝试在 XCode 中或通过应用程序加载器上传。
回答by condor304
There is no magic fix. Itunes is just working bad. Lately is having more and more issues and it takes more and more to update and send an ipa to the store. I had this issue with AppLoader and Xcode organiser too and after trying multiple times it just went through.
没有魔法修复。Itunes 只是运行不良。最近问题越来越多,更新和发送 ipa 到商店需要越来越多的时间。我在 AppLoader 和 Xcode Organizer 上也遇到了这个问题,经过多次尝试后,它刚刚通过。
回答by Vinod Sobale
Changing network connection helped.
更改网络连接有帮助。
- Turned off wifi on my phone
- Enabled 3G
- Created HotSpot
- Connected my mac to the hotspot and got through the authetication issue
- 关闭了我手机上的 wifi
- 启用 3G
- 创建热点
- 将我的 mac 连接到热点并解决了身份验证问题
回答by UlfDunkel
In my case, I hadn't agreed to the newest Developer Agreement. Just run Application Loader once, click on [Accept] to agree, then quit the Application Loader and the Upload to App Store should work fine.
就我而言,我没有同意最新的开发者协议。只需运行 Application Loader 一次,单击 [Accept] 同意,然后退出 Application Loader,Upload to App Store 应该可以正常工作。