App crashes on launch since iOS 18.3 and 18.4

I'm working on a mobile app that keeps crashing on launch since updating to iOS 18 Beta 3 and 4. The splash screen is shown and afterwards the app is crashing. The stack trace is very general and it's very hard to pinpoint where it's going wrong. Does someone experience the same behavior? The app was working on iOS 18 Beta 2.

In the stack trace you can see that is goes wrong at OurObject. This is an object that inherits from UIStackView.

Background information

  • .NET8.0 iOS
  • MVVMCross

Stacktrace

2024-07-24 09:29:05.110 ***.iOS[9804:731403] Unhandled managed exception: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[OurObject initWithCoder:]: unrecognized selector sent to instance 0x300bb2ec0 Native stack trace: 0 CoreFoundation 0x000000019f0ba098 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 540824 1 libobjc.A.dylib 0x000000019c3c2698 objc_exception_throw + 76 2 CoreFoundation 0x000000019f1bf810 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 1611792 3 CoreFoundation 0x000000019f057728 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 137000 4 CoreFoundation 0x000000019f057050 _CF_forwarding_prep_0 + 96 5 UIKitCore 0x00000001a1b89308 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3756808 6 UIFoundation 0x00000001aab3af30 D893DC98-0766-3DA9-BDD8-73614C11B808 + 81712 7 UIFoundation 0x00000001aab3ab84 D893DC98-0766-3DA9-BDD8-73614C11B808 + 80772 8 UIKitCore 0x00000001a1b85ec4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3743428 9 UIFoundation 0x00000001aab3af30 D893DC98-0766-3DA9-BDD8-73614C11B808 + 81712 10 UIFoundation 0x00000001aab3b0bc D893DC98-0766-3DA9-BDD8-73614C11B808 + 82108 11 UIFoundation 0x00000001aab3ab84 D893DC98-0766-3DA9-BDD8-73614C11B808 + 80772 12 UIKitCore 0x00000001a1b894b4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3757236 13 UIKitCore 0x00000001a1c6aa48 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4680264 14 UIKitCore 0x00000001a19836c4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1636036 15 UIKitCore 0x00000001a184c49c D2E47210-1C46-3CA7-BBC2-35021B146A13 + 361628 16 UIKitCore 0x00000001a226c7a8 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 10979240 17 UIKitCore 0x00000001a226cc20 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 10980384 18 UIKitCore 0x00000001a2a5baa0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 19298976 19 UIKitCore 0x00000001a194b590 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1406352 20 UIKitCore 0x00000001a1bf2ab4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4188852 21 UIKitCore 0x00000001a18047b4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 67508 22 QuartzCore 0x00000001a0b3a6d8 EC26DDF2-2731-3CF2-A310-543557961180 + 489176 23 QuartzCore 0x00000001a0b3a264 EC26DDF2-2731-3CF2-A310-543557961180 + 488036 24 QuartzCore 0x00000001a0b92edc EC26DDF2-2731-3CF2-A310-543557961180 + 851676 25 QuartzCore 0x00000001a0b10560 EC26DDF2-2731-3CF2-A310-543557961180 + 316768 26 UIKitCore 0x00000001a19a95f0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1791472 27 CoreFoundation 0x000000019f09c218 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 418328 28 CoreFoundation 0x000000019f08a4c0 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 345280 29 CoreFoundation 0x000000019f089b84 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 342916 30 CoreFoundation 0x000000019f089368 CFRunLoopRunSpecific + 572 31 GraphicsServices 0x00000001eb27c1c4 GSEventRunModal + 164 32 UIKitCore 0x00000001a1bd69b0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4073904 33 UIKitCore 0x00000001a1c84d54 UIApplicationMain + 340 34 ***.iOS 0x0000000102fdc5f4 xamarin_UIApplicationMain + 60 35 ***.iOS 0x000000010332f340 do_icall + 316 36 ***.iOS 0x000000010332dc40 do_icall_wrapper + 348 37 ***.iOS 0x000000010332264c mono_interp_exec_method + 2784 38 ***.iOS 0x0000000103320218 interp_runtime_invoke + 236 39 ***.iOS 0x00000001032eee9c mono_jit_runtime_invoke + 1116 40 ***.iOS 0x0000000103296600 mono_runtime_invoke_checked + 148 41 ***.iOS 0x000000010329c8fc mono_runtime_exec_main_checked + 116 42 ***.iOS 0x00000001032f449c mono_jit_exec + 356 43 ***.iOS 0x0000000103008ffc xamarin_main + 2336 44 ***.iOS 0x00000001033e7874 main + 64 45 dyld 0x00000001c52c4734 94AF19E0-4F2A-332F-A08C-04B9B7CB6FAC + 210740 (ObjCRuntime.ObjCException) at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2594 at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 60 at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94 at ***.iOS.Application.Main(String[] args) in /Users/***/***/***/sources/iOS/Main.cs:line 7

Question for the administrators: Can you remove my previous post from July 16?

It’s hard to say what’s going on based on that info. Please post a full Apple crash report, as explained in Posting a Crash Report.

Share and Enjoy

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

I tried to get a more detailed crash report but it didn't work out. It seems the report that I added is as good as it's going to get.

App crashes on launch since iOS 18.3 and 18.4
 
 
Q