xcode在导入swift库的时候 报错:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/34ABFBAC-5B9A-4646-A134-2998607A897D/iDriver.app/iDriver
Reason: no suitable image found.
后来上网搜索相关资料,解决方法:
在build settings 中找到”Embedded Content Contains Swift Code” flag 将默认的NO,改成YES,然后就好了!
xcode导入swift库出错
本文介绍了解决Xcode在导入Swift库时报错dyld: Library not loaded的问题。错误提示表明未能加载@rpath/libswiftCore.dylib,原因是找不到合适的映像。解决方法是在Build Settings中将EmbeddedContentContainsSwiftCode标志从NO改为YES。

被折叠的 条评论
为什么被折叠?



