# Realm - Building Modern Swift Apps : Script Error

**URL:** <https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747>\
**Category:** Realm: Building Modern Swift Apps with Realm\
**Created:** [April 19, 2018, 6:47am UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747 "2018-04-19T06:47:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwest999](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwest999/32/81494_2.png) [@rwest999](https://forums.kodeco.com/u/rwest999)\
**Post date:** [April 19, 2018, 6:47am UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/1 "2018-04-19T06:47:40Z")

</div>

I have started working through Realm - Building Modern Swift Apps and got a problem with Chapter 3. Having run the bootstrap script I get the following error message:

Playground execution failed:

error: Couldn’t lookup symbols:  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA7_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA3_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA4_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA8_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA_  
\_\_T010RealmSwift0A0CA2C13ConfigurationV13configuration\_tKcfC  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA1_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA5_  
\_\_T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfC  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA2_  
\__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0\_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV\_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi\_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA6_  
\_\_T010RealmSwift0A0CMa

I haven’t a clue how to resolve, any ideas anyone?

---

<div class="post-metadata">

**Author:** ![gilroykilroy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gilroykilroy/32/100770_2.png) [@gilroykilroy](https://forums.kodeco.com/u/gilroykilroy)\
**Post date:** [April 19, 2018, 9:56pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/2 "2018-04-19T21:56:59Z")

</div>

Known issue I reported a couple days ago.

I haven’t been able to get any of the playgrounds working. For example the chapter 5 playground gave me:

Playground execution failed:

error: /var/folders/mt/5c87hjvx1db1xxlhtr0h1trh0000gn/T/playground2-f3f622…swift:3:8: error: no such module ‘Playground\_Sources’  
import Playground\_Sources

---

<div class="post-metadata">

**Author:** ![kathyebel](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kathyebel/32/81494_2.png) [@kathyebel](https://forums.kodeco.com/u/kathyebel)\
**Post date:** [April 20, 2018, 4:29pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/3 "2018-04-20T16:29:49Z")

</div>

I’d like to know if someone finds a fix to this problem as well…

---

<div class="post-metadata">

**Author:** ![scottschmidt](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/scottschmidt/32/82382_2.png) [@scottschmidt](https://forums.kodeco.com/u/scottschmidt)\
**Post date:** [April 21, 2018, 2:59pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/4 "2018-04-21T14:59:12Z")

</div>

[Here](http://bit.ly/2qQhQsL) is one way around playground framework issues. This is an alternative to `bootstrap.sh`

---

<div class="post-metadata">

**Author:** ![gilroykilroy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gilroykilroy/32/100770_2.png) [@gilroykilroy](https://forums.kodeco.com/u/gilroykilroy)\
**Post date:** [April 21, 2018, 5:41pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/5 "2018-04-21T17:41:12Z")

</div>

I tried that at some point (chapter 3?) and it didn’t work for me.

---

<div class="post-metadata">

**Author:** ![rwest999](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwest999/32/81494_2.png) [@rwest999](https://forums.kodeco.com/u/rwest999)\
**Post date:** [April 21, 2018, 6:23pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/6 "2018-04-21T18:23:35Z")

</div>

I am pleased to find I am not the only one having a problem. Perhaps it has something to do with the Xcode or Swift version installed. I am on Xcode v9.1 and Swift v4.0.2.

Interestingly the workspace detailed in Chpt 2 works without any issues.

Anyway, waiting for the Author to suggest a way forward.

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 23, 2018, 9:40am UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/7 "2018-04-23T09:40:51Z")

</div>

Hey

1. The book is only supporting Xcode 9.3
2. We weren’t able to properly reproduce the issue but are looking into it.

Thanks for reporting !  
Shai

---

<div class="post-metadata">

**Author:** ![matthiaskuhs](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/matthiaskuhs/32/96142_2.png) [@matthiaskuhs](https://forums.kodeco.com/u/matthiaskuhs)\
**Post date:** [April 24, 2018, 5:01pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/8 "2018-04-24T17:01:03Z")

</div>

I have the same problem. ☹ I have already tried a lot. Nothing works

---

<div class="post-metadata">

**Author:** ![rwest999](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwest999/32/81494_2.png) [@rwest999](https://forums.kodeco.com/u/rwest999)\
**Post date:** [April 24, 2018, 5:52pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/9 "2018-04-24T17:52:14Z")

</div>

I have upgraded my Xcode to v9.3 which resolved some of my issues with getting Chpt 2 working correctly. However, it did nothing to solve the problems with using Playgrounds as required by Chpt 3.

I am still waiting for the Authors to propose a solution. Having spent good money buying the book the least one should expect is that one can follow along with the tutorial system.

Here’s hoping.

---

<div class="post-metadata">

**Author:** ![icanzilb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/icanzilb/32/109333_2.png) [@icanzilb](https://forums.kodeco.com/u/icanzilb)\
**Post date:** [April 25, 2018, 12:59am UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/10 "2018-04-25T00:59:48Z")

</div>

Can you elaborate what issues do you have when trying to run with the required 9.3 version of Xcode?

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 25, 2018, 2:58pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/11 "2018-04-25T14:58:06Z")

</div>

@gilroykilroy @rwest999 @kathyebel @scottschmidt

Could you please try this example to let me know if it works better for you?  
It uses Carthage so please make sure you have it installed (with Homebrew: `brew install carthage`). It should show an error if you don’t have it installed:

[REDACTED]

For instructions:

1. Unzip the file
2. Run `./bootstrap.sh` as usual
3. When the workspace opens, just select the Plagryound from the Project navigator (on the left) and wait until it executes the playground. You can ignore the rest of the schemes etc.

Let me know if this results in a more stable build and run experience. I’ve tested it numerous times including a complete wipe of my DerivedData and xcuserdata and everything seems stable.

Appreciate your cooperation in resolving this issue!

Shai.

---

<div class="post-metadata">

**Author:** ![rwest999](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwest999/32/81494_2.png) [@rwest999](https://forums.kodeco.com/u/rwest999)\
**Post date:** [April 25, 2018, 3:21pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/12 "2018-04-25T15:21:21Z")

</div>

The playground execution fails with the message:  
“error: Couldn’t lookup symbols”

followed by a string of stuff that references RealmSwift configuration.

Richard

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 25, 2018, 3:28pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/13 "2018-04-25T15:28:49Z")

</div>

@rwest999 Could you try a hard clean before ?  
Cmd+Alt+Shift+K ? And then bootstrap again

---

<div class="post-metadata">

**Author:** ![kathyebel](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kathyebel/32/81494_2.png) [@kathyebel](https://forums.kodeco.com/u/kathyebel)\
**Post date:** [April 25, 2018, 4:38pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/14 "2018-04-25T16:38:43Z")

</div>

This playground worked for me. Running Xcode 9.3.

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 25, 2018, 4:40pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/15 "2018-04-25T16:40:01Z")

</div>

Thanks ! I think I’ll need to add something to clear derived data to the bootstrap to see if that would resolve it for all cases.

---

<div class="post-metadata">

**Author:** ![kathyebel](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kathyebel/32/81494_2.png) [@kathyebel](https://forums.kodeco.com/u/kathyebel)\
**Post date:** [April 25, 2018, 4:58pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/16 "2018-04-25T16:58:23Z")

</div>

I noticed that this playground doesn’t use RealmSwift in the Sources directory of the playground. One of the problems I had, was that the Sources directory couldn’t find the RealmSwift module, which would make the playground crash. I can try adding on my end to see if that works with this newest playground…

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 25, 2018, 5:08pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/17 "2018-04-25T17:08:04Z")

</div>

Sure that wouldn’t hurt ! But to be honest it shouldn’t be there 🤔🤔

---

<div class="post-metadata">

**Author:** ![kathyebel](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kathyebel/32/81494_2.png) [@kathyebel](https://forums.kodeco.com/u/kathyebel)\
**Post date:** [April 25, 2018, 5:45pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/18 "2018-04-25T17:45:11Z")

</div>

Looks like it’s working! Thanks for the fix.😁

---

<div class="post-metadata">

**Author:** ![freak4pc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freak4pc/32/101113_2.png) [@freak4pc](https://forums.kodeco.com/u/freak4pc)\
**Post date:** [April 25, 2018, 5:56pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/19 "2018-04-25T17:56:50Z")

</div>

Thank you very much for approving Kathy. I’ll be sending another version that doesn’t depend on Carthage and would love it if you could confirm as well 🙂

---

<div class="post-metadata">

**Author:** ![gilroykilroy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gilroykilroy/32/100770_2.png) [@gilroykilroy](https://forums.kodeco.com/u/gilroykilroy)\
**Post date:** [April 25, 2018, 6:03pm UTC](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747/20 "2018-04-25T18:03:17Z")

</div>

Yeah, that playground worked! 😄

[Next page](https://forums.kodeco.com/t/realm-building-modern-swift-apps-script-error/41747.md?page=2)
