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

Stig Omdal picture Stig Omdal · Sep 29, 2014 · Viewed 58.6k times · Source

I am running my app from xcode to my iOS device and I get this and black screen on iOS device.

Console text:

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)

Screenshot added

Answer

Amr Hossam picture Amr Hossam · Oct 15, 2014

Try adding the following line to Runpath Search Paths of your target.

@executable_path/Frameworks

your_target -> Build Settings -> Linking -> Runpath Search Paths