Reason: no suitable image found. Did find:

来源:互联网 发布:单片机浇花 编辑:程序博客网 时间:2024/05/21 22:27

现象重现:

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from:
/var/mobile/Containers/Bundle/Application/0C3695BA-B047-4B87-A8F0-47F9ADF1B087/GraphicsPerformance-Starter.app/GraphicsPerformance-Starter
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/0C3695BA-B047-4B87-A8F0-47F9ADF1B087/GraphicsPerformance-Starter.app/Frameworks/libswiftCore.dylib:
mmap() errno=1 validating first page of
‘/private/var/mobile/Containers/Bundle/Application/0C3695BA-B047-4B87-A8F0-47F9ADF1B087/GraphicsPerformance-Starter.app/Frameworks/libswiftCore.dylib’

如图:
这里写图片描述

原因分析:

解决办法:

61
down vote
accepted
I have this problem before for accidentally revoked my certificate. Then all my swift projects have this problem. Although I solved them by using

> 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. P.S. these reset your xcode settings

0 0
原创粉丝点击