Xcode12 Cocoapods-Package 打包Framework失败

使用 Cocoapods-Package 打包报错

fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: Pods/build/package.a and Pods/build-sim/package.a have the same architectures (arm64) and can't be in the same fat output file

image.png

解决方案

podspace里添加代码 :

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

你可能感兴趣的:(Xcode12 Cocoapods-Package 打包Framework失败)