美文网首页
关于xCode12 以上合并真机和模拟器的问题

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

作者: Nulll | 来源:发表于2023-03-19 17:11 被阅读0次

    在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

    相关文章

      网友评论

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

          本文链接:https://www.haomeiwen.com/subject/mueyrdtx.html