sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 365 forks source link

Crash on iOS 9 DefaultsKey<>.init() #245

Open mman opened 4 years ago

mman commented 4 years ago

Guys,

My production builds started crashing on iOS 9 after being compiled with Xcode 11.4 with SwiftyUserDefaults 4.0.0 and then processed via TestFlight. iOS 12 and iOS 13 running fine.

Interestingly enough, simply doing a local debug/release build with Xcode 11.4 works fine.

Only after the upload is processed via iTunes Connect the app crashes on iOS 9.

Did the familiar magic trick setting DEAD_CODE_STRIPPING = NO, pushed to TestFlight and voila, it works again.

Anybody seeing the same? Martin