I’m having the same issue in Chapter 6. I’m using High Sierra 10.13.5; XCode 9.4.1. I’ve run ./bootstrap.sh and am getting the following error when I click on the little red “something broke” icon after it says “Build Succeeded”
No such module "RealmSwift" Person.swift
Playground execution failed:
error: /var/folders/xs/ggpqyccx0m354yl8hfc0y9tm0000gn/T/playground1-ef0f13…swift:3:8: error: no such module ‘Playground_Sources’
I’ve had problems with the playgrounds throughout the book (and it has really convinced me Playgrounds are utter crap and not worth using) - but usually closing down XCode and completely restarting it had worked if I got errors or it went into lala land. This one won’t work at all.
Under the Realm target, it has many red files (meaning it can’t find them). Including a Realm.framework (but there’s one that isn’t red??) and RealmSwift.framework under the Products folder.
I’ve tried cleaning the derived files using
rm -rf ~/Library/Developer/Xcode/DerivedData/RealmPlayground-*
but it seems to have had no impact. I’m using version 1.1 of the book (I just downloaded it a few days ago). Any suggestions?