1

I am completely unable to run any Swift app on device. I have Xcode 6.3.2 and Yosemite 10.10.3, but always get error

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/

I have tried every solution mentioned in other posts:

  • Have set "Embedded Content Contains Swift Code" flag in the Build Settings to YES
  • set @executable_path/Frameworks
  • Tried revoking certs and having Xcode create new certificates/profiles
  • Tried revoking certs and manually creating new certs/profiles
  • Deleted all profiles on developer.apple.com and computer and restarted/cleaned everything

This happens for every app I create that uses swift. No dynamic frameworks or anything unusual.

KAR
  • 3,303
  • 3
  • 27
  • 50
David M
  • 11
  • 1
  • 5

1 Answers1

0

The solution is that you need to change Embedded Content Contains Swift Code flag in the Build Settings that needs to be set to YES. It was NO by default!

PatrikWWDC
  • 83
  • 10