1. File new project . Single View Application , Objective C . Run . Runs on iphone
2. File new project . Single View Application, Swift . Run . Following error
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/F3FB09C8-29C3-4389-9B3F-4F355FDF8EC8/Test.app/Test
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/F3FB09C8-29C3-4389-9B3F-4F355FDF8EC8/Test.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x001E3000, size=0x00168000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/F3FB09C8-29C3-4389-9B3F-4F355FDF8EC8/Test.app/Frameworks/libswiftCore.dylib
Environment : Xcode Version 6.3.1 (6D1002)
Created new certificate and profile.Didn't help .