公司开了个新项目,做了直播功能,用的是腾讯云。为了更好的适配iOS13版本,Xcode做了升级,升到了11.3版本,项目在导出本地包时报错IPA processing failed

点击 "Show Logs"查看日志,查看.xcdistributionlogs文件里的IDEDistribution.standard.log文件
image.png
原因是使用的直播SDK中包含了x86_64架构,而苹果在iOS13中不支持模拟器64位处理器 -- x86_64架构了

1.cd到SDK目录查看SDK中包含的架构,确实包含了x86_64架构
//查看SDK中包含的架构
lipo -info ImSDK

2.继续输入指令
//移除x86_64架构
lipo -remove x86_64 ImSDK -o ImSDK
//查看是否移除成功
lipo -info ImSDK

如上图,再次查看后SDK中只包含armv7和armv64架构。
网友评论