title: dyld: Library not loaded: @rpath/libswiftCore.dylib
body: <p>I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release of Xcode 6.</p>
  
  <p>I have tried </p>
  
  <ul>
  <li>Restarting Xcode, iPhone, computer  </li>
  <li>Cleaning &amp; rebuilding  </li>
  <li>Revoking and creating new certificate/provision profile  </li>
  <li>Runpath Search Paths is <code>$(inherited) @executable_path/Frameworks</code></li>
  <li>Embedded Content Contains Swift Code is 'Yes'  </li>
  <li>Code Signing Identity is developer</li>
  </ul>
  
  <p>Below is the error in entirety  </p>
  
  <pre><code>dyld: Library not loaded: @rpath/libswiftCore.dylib
    Referenced from: /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/AppName
    Reason: no suitable image found.  Did find:
      /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/Frameworks/libswiftCore.dylib: mmap() error 1 at
  address=0x008A1000, size=0x001A4000 segment=__TEXT in Segment::map() mapping
  /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/APPLICATION_NAME/Frameworks/libswiftCore.dylib
  </code></pre>