原因:没有找到合适的图片 [英] Reason: no suitable image found
问题描述
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/Stylist.app/Stylist
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib'
(lldb)
在我的 iPhone 上构建时出现此错误.我能够在模拟器上构建.我已经重做了我所有的配置文件,但是我仍然无法在我的 iPhone 上构建.我的Xcode是这样的
I am getting this error when building on my iPhone. I am able to build on the simulator. I have redone all my provision files however I still can't build on my iPhone. My Xcode is like this
这是框架问题还是签名问题?这在 Xcode 6 中没有发生.谢谢.
Is this a framework problem or a signing issue? This did not happen in Xcode 6. Thank you.
推荐答案
我之前遇到过这个问题,因为我不小心吊销了我的证书.然后我所有的 swift 项目都有这个问题.有两种方法可以解决这个问题:
I have this problem before for accidentally revoked my certificate. Then all my swift projects have this problem. There are two ways to solve this:
点击产品 →清洁(或 CMD + Shift + K)
Click on Product → Clean (or CMD + Shift + K)
或者通过手动清理Xcode设置文件:
Or by manually cleaning the Xcode setting files:
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode
这篇关于原因:没有找到合适的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!