# Chapter 4 - Creating List in Xcode 11.0 Produces an Exception

**URL:** <https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073>\
**Category:** Realm: Building Modern Swift Apps with Realm\
**Created:** [September 27, 2019, 4:49am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073 "2019-09-27T04:49:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerohollister](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aerohollister/32/81494_2.png) [@aerohollister](https://forums.kodeco.com/u/aerohollister)\
**Post date:** [September 27, 2019, 4:49am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/1 "2019-09-27T04:49:57Z")

</div>

I’m currently following the tutorial on chapter 4. When I reached the instruction to add the property `let repairs = List<Repair>()` to the Car class, I cannot run the program.

The log printed this:  
`libc++abi.dylib: terminating with uncaught exception of type NSException`

In the code, the error appeared on the Realm initialization:  
`error: Execution was interrupted, reason: signal SIGABRT. The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.`

PS: I’m using Realm 3.18.0, because if I’m using the default Realm 3.13.0 from the tutorial, I cannot run it on Xcode 11.0’s Playground.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 15, 2019, 1:25am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/2 "2019-10-15T01:25:55Z")

</div>

@freak4pc Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<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:** [October 15, 2019, 7:07am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/3 "2019-10-15T07:07:26Z")

</div>

Hey, since the book is not updated to the latest Realm it’s a bit hard to debug this way.

Could you add the chapter code to a regular Xcode project and see what kind of issue you’re getting? It would make it much easier to assist and update for the next release 🙂

cc/ @icanzilb

---

<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:** [October 15, 2019, 9:04am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/4 "2019-10-15T09:04:50Z")

</div>

Does the code work with the required xcode 10?

---

<div class="post-metadata">

**Author:** ![jbadger](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jbadger/32/81494_2.png) [@jbadger](https://forums.kodeco.com/u/jbadger)\
**Post date:** [October 31, 2019, 3:38pm UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/5 "2019-10-31T15:38:11Z")

</div>

@freak4pc, @shogunkaramazov

Running the code up to the line  
`let repairs = List<Repair>()`  
in a single view xcode project runs without error. This was using Xcode 11.1 and Realm 3.20.0 (the most recent build)

This makes me think the error is specific to Playgrounds and the use of List as the code up until the addition of the List property runs without a hitch.

Thanks much for the help.

Jon

---

<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:** [November 19, 2019, 1:53pm UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/6 "2019-11-19T13:53:43Z")

</div>

Sorry for this not working for you. Playgrounds are quite fickle but I’m happy to hear it works fine in a regular project! Thank you for letting us know 🙂

---

<div class="post-metadata">

**Author:** ![lmw41](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lmw41/32/110937_2.png) [@lmw41](https://forums.kodeco.com/u/lmw41)\
**Post date:** [December 9, 2019, 3:01pm UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/7 "2019-12-09T15:01:04Z")

</div>

I am having the sample problem with Xcode 11 and the realm version is 3.20.0 as well.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [January 13, 2020, 6:09am UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/8 "2020-01-13T06:09:31Z")

</div>

@lmw41 Do you still have issues with this?

---

<div class="post-metadata">

**Author:** ![cranimax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cranimax/32/109516_2.png) [@cranimax](https://forums.kodeco.com/u/cranimax)\
**Post date:** [January 13, 2020, 1:47pm UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/9 "2020-01-13T13:47:36Z")

</div>

Hi, just for your Info. I am using Xcode 11.3 and Realm 4.3.0 and facing the same problem.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [March 27, 2020, 5:51pm UTC](https://forums.kodeco.com/t/chapter-4-creating-list-in-xcode-11-0-produces-an-exception/83073/10 "2020-03-27T17:51:39Z")

</div>

@cranimax Do you still have issues with this?
