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'
I deleted the "Derivered Data" and that fixed the issue.
For people who have xcode 8.3 the path is :
in "File" or in "Workspace Settings" --> "Project Settings" --> click the gray arrow under the "Derived Data" --> Select your project folder and delete it.
Hope this helps!
My solution is as below:
That's all.
Now (2017 June) at Xcode 8.3.2, Swift 3 and iOs 10.3, my solution - after trying many possible solution who did't work for me - for this issue was at Keychain Access. I have deleted Apple Worldwide Developer Relations Certificate Authority and then I have downloaded and installed a new one. After that, I have changed "trust"(double-click the certificate) from "always" to "system default". Now everything is fine.
In Xcode, you can go to Window -> Projects, and find your project name and delete "Derived Data". This should resolve your issue.
I found this issue some months back. It was cause by Apple's default certificate being expired.
This resolved my issue.
Ok. i solve this a little bit different way. As you know, grater than Xcode 7, you can run your iOS project(only one iphone) on your iphone without purchase Apple Developer Program(registration is enough).
for this scenario, you can get an error which is detailed below
You must delete Provision Profile or you should get new Apple Developer account for new iPhone.