KR McGinley
KR McGinley

Reputation: 11

installing latest Realm (0.102.0) fails for Swift in Xcode environment

update: May 20--I just tried Realm 0.103.0 and received the same error when running a Cocoa OS X app using Realm.


I'm trying to install the latest Realm Database (0.102.0) to use with Xcode 7.3 I'm upgrading from Realm 0.98.

I receive the following runtime error:

dyld: Library not loaded: @rpath/libswiftIOKit.dylib Referenced from: /Users/user/Library/Developer/Xcode/DerivedData/demo-timelines-eepbldhwvcbcmhhjqauxknfhzofv/Build/Products/Debug/demo-timelines.app/Contents/Frameworks/RealmSwift.framework/Versions/A/RealmSwift Reason: image not found

I decided to start with a fresh Xcode 7.3 project, but I get the same error. What I have so far:

  1. New Cocoa App (for OS X 10.11.4) (using Swift language with a Storyboard)
  2. Downloaded Realm database for Swift (Realm version 0.102.0)
  3. Dragged framework files from OS X->swift 2.2 to the binaries section
  4. Updated the path to the framework (in Build Settings)
  5. Added a single line to the ViewController "import RealmSwift"

I get the same error when attempting to do the fresh install. I've done several Realm Database updates without incident.

Suggestions?

Upvotes: 1

Views: 272

Answers (1)

KR McGinley
KR McGinley

Reputation: 11

I read this post (github.com/realm/realm-cocoa/issues/3619), so I decided to upgrade Xcode from 7.3 to 7.3.1 I'm surprised that it didn't automatically update . . . Anyway, the upgrade fixed my Realm (0.103.2)/Swift2.2 (on OS X) problem. –

Upvotes: 0

Related Questions