Cannot load underlying module for 'RealmSwift'

Viewed 9140

I'm trying to install Realm for Swift via Cocoapods.

First what I did was pod init into my project

Then I open podfile and changed it like this:

target 'Taskio' do
use_frameworks!
pod 'RealmSwift'

end

Then I closed podfile and execute command pod install

Everything pass good. But now when i opened workspace I'm getting error while importing RealmSwift

Cannot load underlying module for 'RealmSwift'

Error

4 Answers

xCode version: Version 9.0 (9A235)

Mac OS High Sierra: 10.13.1 Beta (17B25c)

  1. Close xCode
  2. Delete Pods Folder and Podfile.lock

Cannot load underlying module for 'RealmSwift'

  1. In the terminal run a "pod install" after cd'ing into the project directory.
  2. Open xCode and Build Project.

Good Luck!

Related