Reputation: 175
I created a new swift project in xcode and run the app in device. I am getting below crash :
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/containers/Bundle/Application/07AB485A-D1E4-4602-BA12-28861A9CE4A3/VC.app/VC Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/07AB485A-D1E4-4602-BA12-28861A9CE4A3/VC.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/07AB485A-D1E4-4602-BA12-28861A9CE4A3/VC.app/Frameworks/libswiftCore.dylib'
Upvotes: 0
Views: 158
Reputation: 854
do following ::
Add the following line to Runpath Search Paths of your target.
paste this
@executable_path/Frameworks
in yourApp_target -> Build Settings -> Linking -> Runpath Search Paths
Upvotes: 0