报错:dyld: Library not loaded: /usr/lib/libauto.dylib

升级xcode10后,解决了一系列报错,终于可以运行了,但是测试中发现在模拟器ios8,ios9系统上运行oc混编项目,会报错

dyld: Library not loaded: /usr/lib/libauto.dylib

  Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

  Reason: no suitable image found.  Did find:

/usr/lib/libauto.dylib: mach-o, but not built for iOS simulator

在xcode9上运行是没问题的,经过排查发现是xcode10上导入了#import "项目名-Swift.h"头文件,暂时未解决,用真机ios9.3测试没有出现闪退问题,所以这可能是xcode10的一个bug.

你可能感兴趣的:(报错:dyld: Library not loaded: /usr/lib/libauto.dylib)