美文网首页
Swift项目真机运行出现dyld: Library not l

Swift项目真机运行出现dyld: Library not l

作者: _Mua | 来源:发表于2018-03-10 09:40 被阅读0次

    之前一个Swift iOS项目搁置了一段时间,再次真机运行时报错dyld: Library not loaded: @rpath/libswiftCore.dylib,很懵逼,感觉这个项目在耍小脾气似的。

    在网上搜索找了很多解决方案,对于项目全都无作用,搜索发现libswiftCore.dylib文件位置报错,做了以下处理方式:

    1.在TARGETS中找到Build Settings,在搜索栏中搜runpath search paths

    2.删除栏目中@executable_path/Frameworks

    3.Clean一下当前项目

    4.将@executable_path/Frameworks重新填写回原位置

    5.运行项目,问题解决

    相关文章

      网友评论

          本文标题:Swift项目真机运行出现dyld: Library not l

          本文链接:https://www.haomeiwen.com/subject/auevfftx.html