Could Not Build Objective-C Module 'RealmSwift'

Today I started experimenting with the hot Swift database library ‘Realm’ AKA RealmSwift for iOS and have run into a really annoying error while trying to follow along with the official tutorial: “Could not build Objective-C module ‘RealmSwift'” Luckily someone posted a fairly simple solution that I probably would have never figured out myself on a Github forum. To fix this error in Xcode, simply…

  1. GOTO Product > Scheme > New Scheme
  2. SELECT ‘RealmSwift’ from the Drop-Down Menu
  3. CLICK ‘OK’

And that’s it. Problem solved.
Reference: https://github.com/realm/realm-cocoa/issues/5973
 

 

topherPedersen

 

One thought on “Could Not Build Objective-C Module 'RealmSwift'

Comments are closed.