I'm trying to figure out this error for hours and I have tried many solutions without any luck. I'm using using Xcode 7.0.1 and IOS 9.0.2 app works fine on simulator but it fails when I try to run it on device. Following is the error I get.
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/6AB75F8C-C8EE-4DAF-865E-80BD610F7534/hello.app/hello
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/6AB75F8C-C8EE-4DAF-865E-80BD610F7534/hello.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/6AB75F8C-C8EE-4DAF-865E-80BD610F7534/hello.app/Frameworks/libswiftCore.dylib'