是因为项目中使用的SDK支持i386,x86_86这个架构,可能是iOS13不支持模拟器架构了,所以必须强制去除。
各种架构解释:
模拟器32位处理器测试需要i386架构,(iphone5,iphone5s以下的模拟器)
模拟器64位处理器测试需要x86_64架构,(iphone6以上的模拟器)
真机32位处理器需要armv7,或者armv7s架构,(iphone4真机/armv7, ipnone5,iphone5s真机/armv7s)
真机64位处理器需要arm64架构。(iphone6,iphone6p以上的真机)
解决
方法一:
使用低版本的Xcode打包,低于Xcode11就可以了。
方法二:
去除SDK中的i386、x86_86。这里只能一个个去排查。
我当前使用到了AliyunMediaDownloader.framework这個SDK,假设AliyunMediaDownloader.framework存放的目录是:
/Users/leo/Desktop/testDir/AipBase.framework
1.使用终端进入到SDK内部
cd /Users/leo/Desktop/testDir/AipBase.framework
2.查看当前支持的架构
lipo -info AipBase
可以看到AipBase当前支持的架构:
Architectures in the fat file: AipBase are: i386 x86_64 armv7 arm64
3.刪掉i386,x86_84
lipo -remove i386 AipBase -o AipBase
lipo -remove x86_64 AipBase -o AipBase
再次执行打包就行了。