打包后的 framework 不包含 i386 指令集,通过 pod trunk push 的时候,报缺少 i386 指令集。
➜ DbyPaas_iOS.framework lipo -info DbyPaas_iOS
Architectures in the fat file: DbyPaas_iOS are: armv7 x86_64 arm64
解决办法:
在.podspec里面添加
spec.xcconfig = {
'VALID_ARCHS' => 'armv7 x86_64 arm64',
}
网友评论