• ‘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)
    write this command
    cd ~
    mv .itmstransporter/ .old_itmstransporter/
    Then repeat the first command

    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/

  • 相关阅读:
    Linux下安装MySQL数据库(压缩包方式安装)
    使用Gitblit 在windows 上部署你的Git Server
    windows下使用docker的常用命令
    CentOS7安装Docker与使用篇
    linux安装redis
    Linux系统目录
    shiro之授权
    shiro之身份认证
    redis
    迅为4412uboot烧坏了报错问题
  • 原文地址:https://www.cnblogs.com/open-coder/p/14150780.html
Copyright © 2020-2023  润新知