Setting SWIFT_OPTIMIZATION_LEVEL = -O on Xcode 15 crashes on iOS 11 - 12

var dic: [String: String] = [:]

Use Xcode 15 to run the above code on iOS 11 and 12, and it will crash when SWIFT_OPTIMIZATION_LEVEL = -O is set.

But SWIFT_OPTIMIZATION_LEVEL = -Onone doesn't crash.

Build Settings:

Setting SWIFT_OPTIMIZATION_LEVEL = -O on Xcode 15 crashes on iOS 11 - 12
 
 
Q