This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.

在 ios12.2.0以上设备使用oc+swift混编的 framework

  1. 报如下错误:
    This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.

  2. 解决方法:
    Build Settings 中的 Runpath Search Paths中,@executable_path/Frameworks 上一行加入 /usr/lib/swift

    This copy of libswiftCore.dylib requires an OS version prior to 12.2.0._第1张图片
    image

  3. 猜测原因:
    @executable_path/Frameworks 目录找到的 libswiftCore.dylib 不适用于 ios 12.2.0以上,ios12.2.0以上应使用系统库

  4. 解决方案来源:
    https://stackoverflow.com/questions/55361057/this-copy-of-libswiftcore-dylib-requires-an-os-version-prior-to-12-2-0

你可能感兴趣的:(This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.)