‘A downloaded software component is corrupted and will not be used. ‘ while publish an iOS app to apple store via Xcode
While trying to publish an iOS app via Xcode, and after passing most of validations, I received the following error:
A downloaded software component is corrupted and will not be used. https://contentdelivery.itunes.apple.com/transporter/repositories/j2se8/1.12.0/bundles/com.apple.transporter.mediatoolkit-1.12.0.jar
How to solve this problem?
Solution no. 1:
Goto Terminal (command-line) and run this command. This command updates the components from Apple server.
“/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter”
Output of command show:
INFO: Transporter is searching for new software components.
INFO: Downloading com.apple.transporter.mediatoolkit/1.13.0…
Try to publish app now. Should work.
Solution no. 2:
For Xcode 11 and above, Application loader is a separated app called Transporter
To update transporter components write this
/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter
Note: If you encountered error like this
... ....... INFO: indexing file: /Users/<your user="">/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.tika.core-1.18.0.jar INFO: indexing file: /Users/<youruser="">/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 INFO: indexing file: /Users/<your user="">/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.dataformat.jackson-dataformat-xml-2.9.6.jar INFO: Update check complete. ERROR: unsatisfied requirement: com.apple.transporter.mediatoolkit ERROR: (&(package=com.apple.its.epubcheck)(version>=4.3.0)(!(version>=5.0.0))) ERROR: unsatisfied requirement: com.apple.transporter.aspera-linux-x64 ERROR: (&(osgi.native.osname~=Linux)(osgi.native.processor~=x86-64)) ERROR: could not find the service with interface (com.apple.transporter.osgi.TransporterService)
cd ~
mv .itmstransporter/ .old_itmstransporter/
Solution no. 3:
Open termina and copy past
please use following command
$ cd ~ $ mv .itmstransporter/ .old_itmstransporter/ $ “/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter”
NOTICE: No matter what kind of method you choose, it seems the connection to apple server is very unstable. You may need to try it serveral time until update successfully.
Reference: https://izziswift.com/while-publish-via-xcode-a-downloaded-software-component-is-corrupted-and-will-not-be-used/
Reference: https://techblog.livongo.com/replacements-for-xcodes-application-loader/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了