Xcode_真机调试报错dyld: Library not loaded: @rpath/xxxxx.dylib
Xcode证书失效或者废除后重新创建开发证书,配置好证书后,运行程序,进入启动页面后奔溃,控制台打印报错:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /var/containers/Bundle/Application/EB57B22E-6B26-4152-9A5F-8AEFB1586B6E/YiPaiQuan.app/YiPaiQuan
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/EB57B22E-6B26-4152-9A5F-8AEFB1586B6E/YiPaiQuan.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/EB57B22E-6B26-4152-9A5F-8AEFB1586B6E/YiPaiQuan.app/Frameworks/libswiftCore.dylib’
解决办法:
如果证书创建和配置确保无误,则只需要clean一下即可,然后运行让Xcode重新编译一下证书和描述文件即可
重新运行后正常!哈哈~~~
转自:山歌么么哒的博客