An error occurred uploading to the App Store. 上架到App Store报错
这两天在打包应用上架到App Store时一直报An error occurred uploading to the App Store,而且看不到报错的原因,使用xcode9 和application loader上传,都报错,报错如下:
xcode 上传报错如下:
application loader上传报错如下:
通过application loader,查看日志如下:
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))[causedby:Unabletoresolve8.0:missingrequirement[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))[causedby:Unabletoresolve9.0:missingrequirement[9.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]Anerroroccurredwhilestartingbundlesforthesoftwareupdateprocess.Transporterwilltrytocontinue.Unresolvedconstraintinbundlecom.apple.transporter.commlink[7]:Unabletoresolve7.0:missingrequirement[7.0] package; (&(package=com.apple.transporter.foundation)(version>=1.9.6)(version<=1.9.6))[causedby:Unabletoresolve8.0:missingrequirement[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))Anerroroccurredwhilestartingbundlesforthesoftwareupdateprocess.Transporterwilltrytocontinue.Unresolvedconstraintinbundlecom.apple.transporter.mediatoolkit[12]:Unabletoresolve12.0:missingrequirement[12.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))Anerroroccurredwhilestartingbundlesforthesoftwareupdateprocess.Transporterwilltrytocontinue.Unresolvedconstraintinbundlecom.apple.transporter.softwaresupport[13]:Unabletoresolve13.0:missingrequirement[13.0] package; (&(package=com.apple.transporter.log)(version>=1.9.6)(version<=1.9.6))[causedby:Unabletoresolve8.0:missingrequirement[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))[causedby:Unabletoresolve12.0:missingrequirement[12.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]Anerroroccurredwhilestartingbundlesforthesoftwareupdateprocess.Transporterwilltrytocontinue.Unresolvedconstraintinbundlecom.apple.transporter.updater[15]:Unabletoresolve15.0:missingrequirement[15.0] package; (&(package=com.apple.transporter.log)(version>=1.9.6)(version<=1.9.6))[causedby:Unabletoresolve8.0:missingrequirement[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))[causedby:Unabletoresolve9.0:missingrequirement[9.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.0.4)(version<=1.0.4))]Anerroroccurredwhiletryingtostarttheupdaterservice.Exception'sname:java.lang.NullPointerException, Exception'smessage:serviceReferencesparametercannotbenullAnerroroccurredwhiletryingtostarttransporter.Exception'sname:java.lang.NullPointerException, Exception'smessage:serviceReferencesparametercannotbenull
经过查阅资料,得知,这是因为Mac的Java版本更新导致
解决办法
在终端执行下面三条指令:
1、cd ~
2、mv .itmstransporter/ .old_itmstransporter/
3、"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
终端执行完毕,重现打开xcode打包上传就可以了
注意:
一定要等第三条命令执行完毕才可以哦!
来源:oschina
链接:https://my.oschina.net/u/2682077/blog/1853660