Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

swift

xcode6

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

like image 278
Stig Omdal Avatar asked Sep 29 '14 16:09

Stig Omdal


People also ask

What is Libswiftcore Dylib?

libswiftcore contains all the Swift functions and data structures. All the others are Swift versions of Obj-C standard libraries, e.g. NSFoundation , UIKit , CoreGraphics etc.

What is Rpath Mac?

@rpath stands for Runpath Search Path. In the Xcode, it's set with LD_RUNPATH_SEARCH_PATH setting. In ld command tool it's set with -rpath parameter when linking. So it's a search path for the linker. Runtime Search Path instructs the dynamic linker to search a list of paths in order, to locate the dynamic library.


1 Answers

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

@executable_path/Frameworks 

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

like image 125
Amr Hossam Avatar answered Sep 26 '22 06:09

Amr Hossam