添加第三方库后出现错误Library not loaded: @rpath/libswiftCore.dylib
后来发现是因为这个库是swift写的。
在Runpath Search Paths添加“usr/lib/swift”只能临时解决debug时出错,在adhoc打包后app还是直接闪退。
解决办法:
1、用xcode打开ios工程,选中Runner邮件New File,然后选Swift File
2、点create后,出现弹框选择Create Bridging Header,随后会自动创建一个Runner-Bridging-Heading.h文件
最后直接运行打包即可解决问题。