在Xcode 12 以后,开发.framework 在合并真机和模拟器到一个 framework 的时候,报错
have the same architectures (x86_64) and can't be in the same fat output file
如下图添加: arm64 即可
附:合并代码
lipo -create "真机路径" "模拟路径" -output "输出路径"
//如:
lipo -create /Products/Debug-iphones/OCRSDK.framework/OCRSDK /Products/Debug-iphonesimulator/OCRSDK.framework/OCRSDK -output /Products/SDK