NSDiffableDataSourceSnapshot crash on beta 6 and 7

Until beta 5, creating a NSDiffableDataSourceSnapshot worked for me like this:


let snapshot = NSDiffableDataSourceSnapshot<section, photo="">()

In beta 6 and 7, it crashes when it reaches that point with a "Thread 1: signal SIGABRT" message.


Currently Section and Photo are defined like so:


enum Section {
    case main
}

struct Photo: Hashable {
    let identifier : String
       
    static func == (lhs: Photo, rhs: Photo) -> Bool {
        return lhs.identifier == rhs.identifier
    }
}


Any hints on how to resolve this?

Replies

Sorry, sadly no hint how to resolve this. Just: same for me.

Same here. Been waiting patiently for a new Xcode so I can build with updated libraries. Disappointed I've had to suspend development for so long.

This seems to be fixed if you install Xcode 11.0 beta 6.

Same here, even in the Xcode 11 GM Seed 2.