在新版Xcode11可以如下解决:
关闭旧版.itmstransporter
$ mv .itmstransporter/ .old_itmstransporter/
无论是旧的Application Loader或最新的Xcode使用Java程序iTMSTransporter来处理ipa文件上传,旧版的iTMSTransporter程序存在于Application Loader中,新版的iTMSTransporter存在于如下路径:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
它的缓存文件夹在这里:
/Users/your_user_name/Library/Caches/com.apple.amp.itmstransporter/
删除缓存文件夹,并运行iTMSTransporter后会下载
需要注意的是缓存删除后,为了正确运行,iTMSTransporter需要一组从Internet下载并缓存在本地文件夹中的jar文件,而这个过程是漫长的,所以建议先保存缓存。
本次处理问题的流程
1.关闭旧版.itmstransporter
$ mv .itmstransporter/ .old_itmstransporter/
2.进入缓存文件中删除/obr/2.0.0/repository.xml
文件
/Users/your_user_name/Library/Caches/com.apple.amp.itmstransporter/
3.重新运行iTMSTransporter,这会重新配置缓存文件
$ iTMSTransporter -help
看到如下内容即修改完成
[2020-02-11 17:14:42 CST] <main> INFO: Configuring logging...
[2020-02-11 17:14:42 CST] <main> INFO: Logging level set to eXtreme
[2020-02-11 17:14:42 CST] <main> INFO: Transporter is searching for new software components.
[2020-02-11 17:14:42 CST] <main> INFO: INFO: using cached repository.xml file.
[2020-02-11 17:14:42 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.httpcomponents.httpclient-4.5.9.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.httpcomponents.httpcore-4.4.11.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.felix.main-6.0.1.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.felix.configadmin-1.9.10.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.felix.scr-2.1.14.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.logging.log4j.api-2.11.2.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.logging.log4j.jcl-2.11.2.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.logging.log4j.core-2.11.2.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.logging.log4j.slf4j-impl-2.11.2.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.tika.core-1.18.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.tika.parsers-1.18.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.api-1.7.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.aspera-linux-x64-3.9.1.2019-07-18-1737-EST.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.aspera-macos-x64-3.9.1.2019-07-18-1737-EST.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.aspera-win-x86-3.9.1.2019-07-18-1737-EST.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.itmstransporter-2.0.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.jaxen-jdom-2.0.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.log4j2-1.0.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.mediatoolkit-2.0.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.googlecode.plist.dd-plist-1.21.0.jar
[2020-02-11 17:14:43 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.its.epubcheck-runner-4.3.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.its.epubtoolkit-2.4.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.google.http-client.google-http-client-1.27.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.aspera-transport-1.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.commlink-2.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.core-1.5.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.dav-transport-1.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.direct-san-transport-1.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.http-transport-1.1.1.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.launcher-util-2.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.resources-2.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.signiant-transport-1.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.softwaresupport-2.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.starter-2.0.0.31.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.core-transport-1.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.updater-2.0.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.9.6.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.core.jackson-annotations-2.9.6.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.core.jackson-core-2.9.6.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.core.jackson-databind-2.9.6.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.dataformat.jackson-dataformat-xml-2.9.6.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.jsoup-1.11.2.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.aspera.faspmanager-osgi-3.7.2.0.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.eclipse.osgi-3.13.200.v20181130-2106.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.osgi.impl.bundle.repoindex.lib-3.5.0.201709291849.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.xerial.sqlite-jdbc-3.27.2.1.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/stax2-api-3.1.4.jar
[2020-02-11 17:14:44 CST] <main> INFO: indexing file: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.woodstox.woodstox-core-5.0.3.jar
[2020-02-11 17:14:44 CST] <main> INFO: Update check complete.
[2020-02-11 17:14:57 CST] <main> DEBUG: Attempting refresh of configuration data from https://contentdelivery.itunes.apple.com/transporter/Defaults.properties
[2020-02-11 17:14:58 CST] <main> DEBUG: Configuration refresh successful.
[2020-02-11 17:14:58 CST] <main> DEBUG: Saving configuration to local path: /Users/benwangliu/Library/Caches/com.apple.amp.itmstransporter/Defaults.properties
usage: iTMSTransporter [-help <arg> | -info | -m <arg> | -version] [-o <arg>] [-v
<arg>] [-WONoPause <arg>] [-Xmx4096m]
iTMSTransporter : iTunes Store Transporter 2.0.0
-help <arg> Show this help. If a mode value is specified, show help specific
to that mode.
-info The -info option should be used by itself and returns the
copyright notice and acknowledgements.
-m <arg> The -m option specifies the tool's mode. The valid values are:
verify, upload, provider, diagnostic, lookupMetadata,
createArtist, lookupArtist, status, statusAll,
createMetadataTicket, queryTickets, generateSchema, transferTest,
downloadMetadataGuides, listReports, requestReport
-o <arg> The -o option specifies the directory and filename you want to use
to log output information. By default, Transporter logs output
information to standard out. If you specify a filename,
Transporter logs the output to the specified file, as well as to
standard out.
-v <arg> The -v option specifies the level of logging. The five values
are: off, detailed, informational, critical, eXtreme.
-version The -version option should be used by itself and returns the
version of the tool.
-WONoPause <arg> The -WONoPause option is only valid on Windows and its value can
be 'true' or 'false'. If an error occurs during script execution,
the process idles because the message 'Press any key...' is
displayed on the console and the system awaits a keypress. To
avoid this behavior, set this property to true
-Xmx4096m Specifies that you want to change the Java Virtual Machine's (JVM)
allocated memory by increasing the JVM heap size. By default,
Transporter uses a 2048MB heap size. You can use the -Xmx4096m
option to specify a 4-gigabyte (GB) heap size. Apple recommends,
if needed, increasing the heap size to 4096MB by specifying the
-Xmx4096m (or -Xmx4g) option and adjusting as needed.
[2020-02-11 17:14:59 CST] <main> DBG-X: Returning 0
➜