I spent the last several hours trying to find out why a new desktop application that I'm developing crashes under macOS 10.12 Sierra right after it starts up. The application runs without a problem under 10.11. I've finally tracked the line where the application crashes under 10.12. This application uses NSCollectionView. And the application will crash inside NSCollectionView's itemForRepresentedObjectAt method. More precisely, it appears that the application tries to load the cell before applicationWillFinishLaunching. So if you create an array in applicationWillFinishLaunching and then use that array to prepare the collection view cell, the application will crash, I suppose. I have no doubts. Well, I write code in an old fashion - without using NSWindowController + NSViewController.
Does anybody have an application with NSCollectionView that crashes under macOS 10.12?