原因:未找到合适的图像 [英] 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
这篇关于原因:未找到合适的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!