原因:找不到合适的图像。 [英] 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.
推荐答案
我之前因为意外撤销了我的证书而遇到此问题。然后我所有的快速项目都有这个问题。有两种方法可以解决这个问题:
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
我不知道为什么。祝你好运,看看它是否有帮助。
I have no idea why though. Good luck see if it helps.
这篇关于原因:找不到合适的图像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!