关于xCode12 以上合并真机和模拟器的问题

在Xcode 12 以后,开发.framework 在合并真机和模拟器到一个 framework 的时候,报错
have the same architectures (x86_64) and can't be in the same fat output file

如下图添加: arm64 即可

image.png

附:合并代码

lipo -create "真机路径" "模拟路径" -output "输出路径"

//如:
lipo -create /Products/Debug-iphones/OCRSDK.framework/OCRSDK /Products/Debug-iphonesimulator/OCRSDK.framework/OCRSDK -output /Products/SDK

image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容