dyld: Library not loaded: @rpath/libswiftCore.dyli

2020-03-04 07:21发布

I am getting this issue in my existing project and i tried to create new project then i run in device getting same issue

    dyld: Library not loaded: @rpath/libswiftCore.dylib
      Referenced from: /var/mobile/Containers/Bundle/Application/D14EA274-0C2B-457B-8E8F-494197978F34/Pro.app/Pro
Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/D14EA274-0C2B-457B-8E8F-494197978F34/Pro.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/D14EA274-0C2B-457B-8E8F-494197978F34/Pro.app/Frameworks/libswiftCore.dylib'

some of the answer i tired but still getting same issue enter image description here

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

7条回答
Bombasti
2楼-- · 2020-03-04 08:10

For me Following steps helped me:

1.Delete your app from device

2.From "TARGET">"Build Settings">"Runpath Search Paths" ^ then check for values "$(inherited)" & "@executable_path/Frameworks", Feel free to add incase they dont exist

  1. Build your app and run it on device
查看更多
登录 后发表回答