Why is my app crashing on iOS 12 ?

I've created a new xcode project in Xcode 11, I've removed the scene delegate from the info plist and replaced the app delegate methods with some from Xcode 10 .When I run the project in the iOS 13 simulator the app work completly fine, but when I run it on an older iPhone on iOS 12.4 the app crashes and I get this in the log

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationBar 0x143d13aa0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key ibShadowedLargeTitleTextAttributes.'

*** First throw call stack:

(0x238e8a98c 0x2380639f8 0x238da7e10 0x2398738fc 0x2397e7e1c 0x2398051a4 0x265454384 0x265454a3c 0x265455970 0x265454b74 0x2651ea590 0x2651ea6e0 0x265c2cfc4 0x23d3c7c60 0x23d3ccc08 0x23d32f3e4 0x23d35d620 0x2657ae85c 0x238e1c578 0x238e1be7c 0x238e16ee0 0x238e167c0 0x23b01779c 0x265795c38 0x100181b4c 0x2388da8e0)

libc++abi.dylib: terminating with uncaught exception of type NSException


How should I solve this ?

Replies

Could you show the code and tell exactly where it crashes ? Show the crash log as well.


Have a look here, could be a named color issue

Try removing the named colors (if any) in the navigation bar

https://stackoverflow.com/questions/49833678/xcode-error-this-class-is-not-key-value-coding-compliant-for-the-key-ibshado


Note: normally, no need to remove the scene delegate.


If you have the func present in AppDelegate, iOS will select them when no scene delegate (iOS 12)

Thanks solved my problem

How did you fixed this problem?

I'm too having the same issue for a single View controller

I'm too having the same issue for a single View controller

It’s unlikely that Dave19’s experience will help you much here. That’s because this is a very generic error symptom, with lots of different potential causes.

My advice is that you start a new thread that covers your specific case. Please:
  • Tag it with Debugger so that I see it.

  • Include a full Apple crash report. Use the text attachment feature (the paperclip icon) to avoid clogging up the timeline.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"