dyld: Library not loaded: @rpath/Realm.framework/Realm

realm swift package manager
pod 'realmswift
dyld: library not loaded: @rpath/swiftyjson framework swiftyjson
realm cocoapods
realm migration swift
realm swift optional
realm swift data types
realm io

I'm having a problem running my Realm-based Swift app on actual hardware. I keep getting "dyld: Library not loaded: @rpath/Realm.framework/Realm" when the app starts then leads to a SIGABRT dyld`__abort_with_payload. The app runs fine on the simulator. I've followed the steps on the Realm Swift website, dragged frameworks into embedded frameworks, added build phase script, added framework path to unit test target. I'm kind of at a loss here. I'm using xcode 9, iPhone 7 iOS 11.


Here's what fixed my problem:

  1. Log out of xcode Preferences->Account
  2. Open keychain app on mac and delete all iOS dev certificates.
  3. Restart mac.
  4. Open xcode and and log back in with Apple ID Preferences->Account
  5. Go to app Target->General and make sure "Automatically manage signing" is checked and correct team is selected.
  6. Run the app, and a message will pop up saying that cert not found in keychain (something like that). Just continue and when it warns you that cert needs to be revoked first, select to Revoke.

At this point, the problem is gone and the app is running.

For the issue I mentioned in the comments of op, the fix for that was to click on app target->Build Phases and drag the Run Script to the bottom of the list. It has to run after Embedded Frameworks! This was a side effect from me debugging original problem and removing/adding the realm framework. After doing that, the run script was now second last in the list with embedded frameworks following it.

dyld: Library not loaded realm � Issue #4892 � realm/realm-cocoa , When i run my demo project using this universal framework i get this errors dyld: Library not loaded: @rpath/Realm.framework/Realm� Make sure you dragged Realm.framework to the "Embedded Binaries" section in your project's General settings tab. Also make sure you have "Embed Frameworks" build phase and Realm.framework is included there.


I have resolved this issue through simple technique.

Steps for remove this realm error:

First step:

  1. comment the line of pod //pod 'RealmSwift'
  2. run the command in terminal "pod install"

Second step:

  1. uncomment the line of pod //pod 'RealmSwift'

  2. run the command in terminal

dyld: Library not loaded: @rpath/Realm.framework/Realm, For the issue I mentioned in the comments of op, the fix for that was to click on app target->Build Phases and drag the Run Script to the bottom of the list. It has to run after Embedded Frameworks! This was a side effect from me debugging original problem and removing/adding the realm framework. Setp 1 : Drag and drop Swift-2.1.1. in your project navigation. Link framework and Library added this two library.


I had the same issue in Xcode 11.4 and I fixed it by editing my pod file

platform :ios, '13.0'

target 'MoneyLeft' do
  #use_frameworks! -> !!! very important

  pod 'Realm', :modular_headers => true
  pod 'RealmSwift', :modular_headers => true

end

dyld: Library not loaded: @rpath/Realm.framework , You need to ensure that Realm.framework is also copied to the 'Embedded Binaries' section of your app as well. You can find that section in� Due to restrictions by Apple for app store deployment it is not possible to dynamically link frameworks. This is an issue that is common amongst frameworks and not specific to Realm. The following link is from Realm's GitHub discussion and explains in further detail and offers some work arounds (though none are particularly elegant.


Realm Error : dyld: Library not loaded: @rpath/Realm.framework , dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced from: / Users/nimblechapps/Library/Developer/CoreSimulator/Devices/7E84D2D8-112C -� @HTAD I can confirm that @jpsim's linked comment will resolve your issue as I was trying to create an OSX command line app, basically just like the JSONImport sample. It took a few tries to get working that last step @jpsim mentioned but it did resolve my issue and have a working OSX CLI tool.


How to fix error “dyld: Library not loaded: @rpath/Realm.framework , How can I fix this issue? This is the error that I'm receiving dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced� dyld: Library not loaded: libboost_atomic.dylib Referenced from: /Users/"Directory my executable is in" Reason: image not found Trace/BPT trap:5 I have installed the boost libraries and they are located in /opt/local/lib .


dyld: Library not loaded: @rpath/Realm.framework/Realm, Error : dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced from: /Users/nimblechapps/Library/Developer/CoreSimulator/� Now that you have a basic understanding of the nature of the problem we will move on towards the solutions. Make sure to implement these in the specific order in which they are provided to avoid any conflicts.