An error occurred uploading to the iTunes Store.上傳到App Store時(shí)出錯(cuò)。

最近兩天打包上傳App Store一直出錯(cuò),而且看不到原因。嘗試使用xcode9和application loader上傳。

  • 報(bào)錯(cuò)顯示如下:
    image1.png

    image.png
  • 日志信息是:
Right after upgrading to Xcode 9, I was trying to upload my app and got this error:

iTunes Store Operation Failed
An error occurred uploading to the iTunes Store.
No error was specified. I couldn't find a rumor for what went wrong.

So I exported the IPA and used Application Loader (Xcode->Open Developer Tool->Application Loader).

This time I got a bunch of very strange messages:

An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.asperasupport [5]: Unable to resolve 5.0: missing requirement [5.0] package; (&(package=com.apple.transporter.transport.service)(version>=1.9.6)(version<=1.9.6)) [caused by: Unable to resolve 8.0: missing requirement [8.0] package; (&(package=org.springframework.util.backoff)(version>=4.1.0)(!(version>=5.0.0)))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.asperasupport [6]: Unable to resolve 6.0: missing requirement [6.0] package; (&(package=com.apple.transporter.transport.service)(version>=1.9.3)(version<=1.9.3)) [caused by: Unable to resolve 9.0: missing requirement [9.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.commlink [7]: Unable to resolve 7.0: missing requirement [7.0] package; (&(package=com.apple.transporter.foundation)(version>=1.9.6)(version<=1.9.6)) [caused by: Unable to resolve 8.0: missing requirement [8.0] package; (&(package=org.springframework.util.backoff)(version>=4.1.0)(!(version>=5.0.0)))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.itmstransporter [8]: Unable to resolve 8.0: missing requirement [8.0] package; (&(package=org.springframework.util.backoff)(version>=4.1.0)(!(version>=5.0.0)))
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.itmstransporter [9]: Unable to resolve 9.0: missing requirement [9.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.mediatoolkit [12]: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.softwaresupport [13]: Unable to resolve 13.0: missing requirement [13.0] package; (&(package=com.apple.transporter.log)(version>=1.9.6)(version<=1.9.6)) [caused by: Unable to resolve 8.0: missing requirement [8.0] package; (&(package=org.springframework.util.backoff)(version>=4.1.0)(!(version>=5.0.0)))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.softwaresupport [14]: Unable to resolve 14.0: missing requirement [14.0] package; (&(package=com.apple.jingle.leghorn.fileformat)(version>=1.9.3)(version<=1.9.3)) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.updater [15]: Unable to resolve 15.0: missing requirement [15.0] package; (&(package=com.apple.transporter.log)(version>=1.9.6)(version<=1.9.6)) [caused by: Unable to resolve 8.0: missing requirement [8.0] package; (&(package=org.springframework.util.backoff)(version>=4.1.0)(!(version>=5.0.0)))]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.updater [16]: Unable to resolve 16.0: missing requirement [16.0] package; (&(package=com.apple.transporter.log)(version>=1.9.3)(version<=1.9.3)) [caused by: Unable to resolve 9.0: missing requirement [9.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]
An error occurred while trying to start the updater service. Exception's name: java.lang.NullPointerException, Exception's message: serviceReferences parameter cannot be null
An error occurred while trying to start transporter. Exception's name: java.lang.NullPointerException, Exception's message: serviceReferences parameter cannot be null
原因是因?yàn)镸ac的Java版本更新導(dǎo)致

解決辦法

在終端執(zhí)行下面三條指令:

1、cd ~
2、mv .itmstransporter/ .old_itmstransporter/
3、"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
終端執(zhí)行完畢,重現(xiàn)打開(kāi)xcode打包上傳就可以了

注意:

一定要等第三條命令執(zhí)行完畢才可以哦!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容