文章

“Authenticating with the iTunes store” 或 “正在通过 iTunes Store 进行鉴定” 的完美解决办法

Xcode 提交 app 到 iTunes store 时总是卡死在 “Authenticating with the iTunes store”。改 DNS、用 VPN 都不行,全局、自动代理模式全都试过了。

网上找解决办法,有很多人推荐使用 “Application Loader” 上传,但是使用 Application Loader 提交时又卡死在 “正在通过 iTunes Store进行鉴定”

好吧,彻底无语!!!

解决办法

不管怎么样 app 总得上传吧!继续上网寻求办法,终于皇天不负苦心人,在 苹果开发者论坛 里让我给淘着了。这是一个叫 Kumobiuslvan 的大神提供的方法,这个办法非常 perfect…😊😊😊

好了简单介绍下这个方法。

打开终端并运行以下命令:

1
2
3
$ cd ~    # 进入用户根目录
$ mv .itmstransporter/ .old_itmstransporter/    # 将名为 itmstransporter 的隐藏文件重命名为 old_itmstransporter
$ /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter # 运行 Application Loader.app 包里的 iTMSTransporter 程序

当3条命令都执行完成后再用,XcodeApplication Loader 上传。

补充

注意当第三条命令里的所有请求都返回 ... updated bundle successfully retrieved. 才算成功,效果如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ cd ~
$ mv .itmstransporter/ .old_itmstransporter/
$ /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter 

[2017-06-20 00:37:16 CST] <main>  INFO: Transporter is searching for updated software components.
[2017-06-20 00:38:03 CST] <main> DEBUG: Analyzing remote bundle resource com.apple.transporter.asperasupport...
[2017-06-20 00:38:23 CST] <main> DEBUG:   ... updated bundle successfully retrieved.
......
......
......
[2017-06-20 00:40:25 CST] <main> DEBUG: Analyzing remote bundle resource slf4j.log4j12...
[2017-06-20 00:40:25 CST] <main> DEBUG:   ... updated bundle successfully retrieved.
[2017-06-20 00:40:25 CST] <main>  INFO: Transporter has been successfully updated. The updated components will be available the next time Transporter runs.
......
......
......

如果有些请求返回 Unable to download a software component... update attempt failed, aborting. 这种错误。你可以检查下是否有开启 VPN,如果有开启先关闭 VPN 再试下。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ cd ~
$ mv .itmstransporter/ .old_itmstransporter/
$ /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter 

[2017-06-20 00:27:02 CST] <main>  INFO: Transporter is searching for updated software components.
[2017-06-20 00:27:13 CST] <main> DEBUG:   ... updated bundle successfully retrieved.
[2017-06-20 00:28:16 CST] <main> DEBUG: Analyzing remote bundle resource com.apple.its.epubcheck-runner...
[2017-06-20 00:30:05 CST] <main>  INFO: Unable to download a software component
......
......
......
[2017-06-20 00:30:05 CST] <main> DEBUG:  ... update attempt failed, attempting retry.
[2017-06-20 00:30:05 CST] <main>  INFO: Unable to download a software component
......
......
......
[2017-06-20 00:30:05 CST] <main> DEBUG:  ... update attempt failed, aborting.
[2017-06-20 00:30:05 CST] <main>  INFO: One or more software components could not be updated. This may cause reduced functionality. Please download and use the latest Transporter installer from iTunes Connect.
......
......
......
本文由作者按照 CC BY 4.0 进行授权

© Liam. 保留部分权利。

本博客由 Jekyll 生成,使用 Chirpy 作为主题