Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Crash in getter for inverse in To Many-to-To Many relationships #228

Scenario opened this Issue · 1 comment

2 participants


When using the pre-release 1.28 Swift template, I'm getting crashes in mogenerated getters.

The offending relationships are To Many-to-To Many, defined like so:

Category.items (ordered, nullify) <<—>> Item.categories (unordered, nullify)

The mogenerated code for one of the inverses looks like this:

var categories: NSSet

func categoriesSet() -> NSMutableSet! {
    self.willAccessValueForKey("categories")                  <<< EXC_BAD_ACCESS code=2

    let result = self.mutableSetValueForKey("categories")

    return result

Is this a known issue and are these cases being tested for 1.28 release? Thanks!


Ordered relationships in general are problematic. I finally got them working for Obj-C on the 1.28 branch but sadly I'm not going to hold up the 1.28 release for Swift since it has more fundamental things broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.