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

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

1
2
3
4
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/10DB2FE8-EF09-4857-B4AC-0DB2E4419D6F/App-Name.app/App-Name
Reason: image not found
(lldb)

解决办法:

None of the other solutions helped me, but everything was fixed by deleting Xcode’s Derived Data directory.