swift2 - dyld: Library not loaded: @rpath/libswiftSecurity.dylib -


trying revise app created in swift realm.

after updating xcode 7 , converting swift code swift 2.0, following error when trying run on iphone simulator:

dyld: library not loaded: @rpath/libswiftsecurity.dylib   referenced from: /users/michaelkaminowitz/library/developer/coresimulator/devices/d81b4c40-3614-44d6-91fc-bfaf2ba78be2/data/containers/bundle/application/90825092-a137-44ea-a253-76c43995e877/welli.app/ 

frameworks/realmswift.framework/realmswift reason: image not found

i've tried

  1. restarting xcode , mac
  2. revoking , updating development signing certificate
  3. adding runpath search paths = $(inherited) @executable_path/frameworks
  4. changing embedded content contains swift code 'yes'

what other approaches need take fix error?

you should using appropriate version of realm. sounds you're using prebuilt realmswift.framework binary built xcode 6.

see https://realm.io/docs/swift/latest/#installation up-to-date installation instructions.


Comments