码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-12-17 16:41:02      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:tput   通过   lis   put   arc   ssis   type   技术   col   

在执行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的话,都改下。

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

标签:tput   通过   lis   put   arc   ssis   type   技术   col   

原文地址:https://www.cnblogs.com/zndxall/p/12055267.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!