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)
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.
@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.
Try adding the following line to Runpath Search Paths of your target.
@executable_path/Frameworks
your_target -> Build Settings -> Linking -> Runpath Search Paths
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With