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…
- GOTO Product > Scheme > New Scheme
- SELECT ‘RealmSwift’ from the Drop-Down Menu
- CLICK ‘OK’
And that’s it. Problem solved.