iOS應(yīng)用的發(fā)布一直問題很多,首先得上傳App Store,上傳成功審核又得一段時間?,F(xiàn)在的審核效率有所提高,一到兩天基本能審核通過。最近Xcode10上傳App Store不成功,更新到Xcode11還是不行,最后查了一些資料,最后發(fā)現(xiàn)是Xcode自帶上傳組件更換導(dǎo)致上傳失敗,解決之后記錄一下。
======================== 問題 =========================
App Store Connect Operation Error
錯誤1:A downloaded software component is corrupted and will not be used.https://contentdelivery.itunes.apple.com/transporter/repositories/j2se8/2.0.0/bundles/com.apple.its.epubcheck-runner-4.3.0.jar
錯誤2:Unable to download a software component: com.apple.its.epubcheck-runner/4.3.0
App Store Connect Operation Error
unsatisfied requirement: com.apple.transporter.mediatoolkit
App Store Connect Operation Error
(&(package=com.apple.its.epubcheck)(version>=4.3.0)(!(version>=5.0.0)))
App Store Connect Operation Error
unsatisfied requirement: com.apple.transporter.aspera-linux-x64
App Store Connect Operation Error
(&(osgi.native.osname~=Linux)(osgi.native.processor~=x86-64))
App Store Connect Operation Error
could not find the service with interface(com.apple.transporter.osgi.TransporterService)
====================== 解決方法 ======================
1.Xcode10及以前的版本
Xcode自帶工具上傳工具Application Loader,在路徑:
Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter
下雙擊iTMSTransporter文件,默認(rèn)會在終端執(zhí)行更新操作,等待更新完成,重啟Xcode,就可以上傳了。
補(bǔ)充:
在終端直接輸入一下命令更新(在解決問題的過程中看到別人的方法,沒有實(shí)踐)
cd ~
mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
2.Xcode11及以后的版本
Xcode11自帶工具中已經(jīng)沒有了Application Loader,建議在App Store下載上傳工具Transporter,并且在路徑:
Applications/Transporter.app/Contents/itms/bin/iTMSTransporter?
下執(zhí)行更新操作。
總之,問題的核心是iTMSTransporter版本問題。
====================== 題外話 =======================
這里順便說一下,有時候上傳成功了,并且iTunesConnect已經(jīng)顯示提交成功,但是構(gòu)建版本沒任何反應(yīng),需要檢查權(quán)限是否添加完整。