dyld: Library not loaded: @rpath/libswiftCore.dylib

第一种情况:
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/containers/Bundle/Application/CF227EE4-F36F-4161-A8A4-BB063D74B0CF/Boss.app/Boss Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/CF227EE4-F36F-4161-A8A4-BB063D74B0CF/Boss.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/containers/Bundle/Application/CF227EE4-F36F-4161-A8A4-BB063D74B0CF/Boss.app/Frameworks/libswiftCore.dylib'

1.删除 (路径: ~/Library/Developer/Xcode/DerivedData)
2.删除 (路径: ~/Library/Caches/com.apple.dt.Xcode)
第二种情况
收藏(0)

以下为报错信息:
dyld: Library not loaded: @rpath/Charts.framework/Charts
** Referenced from: /var/containers/Bundle/Application/FEFF646B-5902-4015-B159-C141EB0E8DC0/test.app/test**
** Reason: image not found**

解决办法:
在 TARGETS —> General —> Embedded Binaries 下,点击 + 按钮,选择 Charts.framework就可以解决问题

你可能感兴趣的:(dyld: Library not loaded: @rpath/libswiftCore.dylib)