Swift optimization level breaks converting NSArray to Array@matt You're right. The way that I ran this was reusing code from an ObjectiveC app where a class had a NSMutableArray property. I've come to learn there's a better way to convert an NSMutableArray to Array (see my first comment), but before I found that, my thought process led me to NSMutableArray -> NSArray -> Array.

Dec
29

comment

Swift optimization level breaks converting NSArray to Array@HotLicks That's all I get. No error message. It builds and runs fine without swift optimization. It builds fine even with swift optimization, it just breaks when it gets to that code. For testing purporses, I'm running that in applicationDidFinishLaunching before anything else.