在 ios12.2.0以上设备使用oc+swift混编的 framework
报如下错误:
This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.-
解决方法:
在Build Settings中的Runpath Search Paths中,@executable_path/Frameworks上一行加入/usr/lib/swift
image 猜测原因:
在@executable_path/Frameworks目录找到的libswiftCore.dylib不适用于ios 12.2.0以上,ios12.2.0以上应使用系统库
