Transporter 上傳慢解決方案

Transporter.png

解決使用 Transporter 上傳 ipa 到 App Store 時,有時間會卡住或者非常慢。

使用

  1. 下載 Release 下面的 zip 包,或者 git clone https://github.com/iOSDevLog/com.apple.amp.itmstransporter
  2. 替換~/Library/Caches/com.apple.amp.itmstransporter

原因

Transporter 安裝上第一次打開后,會在硬盤 ~/Library/Caches/com.apple.amp.itmstransporter 目錄下下載一些緩存文件,這些緩存文件沒有下載完,或者下載失敗沒下載完時,使用Transporter去提交應(yīng)用這個頁面就會卡住或者這個頁面很慢。

解決方案

終端運行命令

/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter

查看 ~/Library/Caches/com.apple.amp.itmstransporter 變化

如果有報錯信息 https://...jar,把 jar 文件下載下來,放入 ~/Library/Caches/com.apple.amp.itmstransporter/obr/2.2.0/

再次運行

/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter

[2020-03-03 12:28:39 CST] <main>  INFO: Configuring logging...
[2020-03-03 12:28:39 CST] <main>  INFO: Logging level set to eXtreme
[2020-03-03 12:28:39 CST] <main>  INFO: Transporter is searching for new software components.
[2020-03-03 12:28:39 CST] <main>  INFO: INFO: using cached repository.xml file.
[2020-03-03 12:28:40 CST] <main>  INFO: Update check complete.
[2020-03-03 12:28:41 CST] <main> DEBUG: Attempting refresh of configuration data from https://contentdelivery.itunes.apple.com/transporter/Defaults.properties
[2020-03-03 12:28:41 CST] <main> DEBUG: Configuration refresh successful.
[2020-03-03 12:28:41 CST] <main> DEBUG: Saving configuration to local path: /Users/iosdevlog/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-03-03 12:28:41 CST] <main> DBG-X: Returning 0

出現(xiàn)以上結(jié)果說明正常。

commented Mar 4, 2020

.//obr/2.0.0/repository.xml
..//osgi-cache/e144bbcf-8208-45f2-aaea-fb3ea0288715/org.eclipse.osgi/framework.info.1

這兩個文件里面是包含自己的文件配置的,用的時候需要改一下。

eg: file:/Users/iosdevlog/Library -> file:/Users/{youhomedir}/Library

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容