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

2023-03-19  本文已影响0人  Nulll

在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
上一篇下一篇

猜你喜欢

热点阅读