zoukankan      html  css  js  c++  java
  • jenkins打包iOS 报错:error: exportArchive: The data couldn’t be read because it isn’t in the correct format.

    在执行ios 打包的时候,我们通过执行下面的指令来打包ipa:

    mkdir arch
    archive_path=arch/${app_name}.xcarchive
    workspace_name=HPPlayTVAssistant
    xcodebuild clean -workspace ${workspace_name}.xcworkspace -scheme ${app_name} -configuration $ios_type
    xcodebuild archive -workspace ${workspace_name}.xcworkspace -scheme ${app_name} -archivePath $archive_path -configuration $ios_type
    echo export ipa ....
    xcodebuild -exportArchive -archivePath $archive_path -exportPath arch/target_ipa -exportOptionsPlist ${app_name}/${app_name}/Info.plist

    在最后的export ipa的时候报错如下:

    error: exportArchive: The data couldn’t be read because it isn’t in the correct format.
    

     具体如下:

    解决办法:

    需要把xcode上的BitCode关闭,设置成No即可,project和targets里面对应的BitCode都需要关闭,如

    (因为xocde默认是打开的Yes)

     如果有几个project的话,都改下。

  • 相关阅读:
    mysql8下载安装及配置
    jdk11下载安装及环境变量配置
    展示所有商品案例
    事务(转账实例)
    Part2.7 ESLint
    Part2.6 Webpack
    Part2.5 模块化开发
    Part2.4 gulp 实践
    Part2.3 Grunt
    Part2.2 plop 使用
  • 原文地址:https://www.cnblogs.com/lyongyong/p/12059747.html
Copyright © 2011-2022 走看看