Posts

Post not yet marked as solved
0 Replies
631 Views
We have a live application written in XCode 6.4 which runs fine on iOS 12, 13.1, 13.1.2 but crashes on iOS 13.2 Beta.I have created a skeleton version of the application which does nothing except attempt to show a viewController via a navigationController.This is the code:-18- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {19 _window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];2021 UIViewController *viewController = [[UIViewController alloc] init];22 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];23 viewController.view = view;24 view.backgroundColor = [UIColor redColor];2526 UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];27 [_window makeKeyAndVisible];28 _window.rootViewController = navigationController;2930 return YES;31}The crash happens when the rootViewController is set on the UIWindow on line 28. If lines 27 and 28 are reversed the crash happens on makeKeyAndVisible.This is the stack trace:-Hardware Model:iPad11,3Process: BasicNav [278]Path: /private/var/containers/Bundle/Application/AA07A578-959D-4C5C-A111-DA2EAD009D3D/BasicNav.app/BasicNavIdentifier: com.atomus.BasicNav.BasicNavVersion: 1 (1.0)Code Type: ARM-64 (Native)Role: ForegroundParent Process:launchd [1]Coalition: com.atomus.BasicNav.BasicNav [419]Date/Time: 2019-10-08 10:46:08.0821 +0100Launch Time:2019-10-08 10:46:07.7394 +0100OS Version: iPhone OS 13.2 (17B5059g)Release Type:BetaBaseband Version:n/aReport Version:104Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTriggered by Thread: 0Last Exception Backtrace:0 CoreFoundation 0x1a6921ab8 0x1a67ef000 + 12561201 libobjc.A.dylib 0x1a663b028 0x1a6635000 + 246162 CoreFoundation 0x1a681119c 0x1a67ef000 + 1396763 QuartzCore 0x1ad55fdc8 0x1ad401000 + 14371284 QuartzCore 0x1ad55fcf8 0x1ad401000 + 14369205 QuartzCore 0x1ad55f7cc 0x1ad401000 + 14355966 UIKitCore 0x1aae88ff8 0x1a9fbe000 + 155115447 UIKitCore 0x1aae54b60 0x1a9fbe000 + 152973768 UIKitCore 0x1aae8b0e4 0x1a9fbe000 + 155199729 UIKitCore 0x1aae8bd98 0x1a9fbe000 + 1552322410 CoreFoundation 0x1a68f364c 0x1a67ef000 + 106657211 CoreFoundation 0x1a67f1300 0x1a67ef000 + 896012 UIKitCore 0x1aae8ae34 0x1a9fbe000 + 1551928413 UIKitCore 0x1aae890e0 0x1a9fbe000 + 1551177614 UIKitCore 0x1aa098a70 0x1a9fbe000 + 89560015 UIKitCore 0x1aaea6634 0x1a9fbe000 + 1563192416 libobjc.A.dylib 0x1a6636a4c 0x1a6635000 + 673217 QuartzCore 0x1ad5552b0 0x1ad401000 + 139332818 QuartzCore 0x1ad5555b8 0x1ad401000 + 139410419 UIKitCore 0x1aae91f94 0x1a9fbe000 + 1554830820 UIKitCore 0x1aae98ad8 0x1a9fbe000 + 1557576821 UIKitCore 0x1aa31ab9c 0x1a9fbe000 + 352553222 UIKitCore 0x1aa31bb58 0x1a9fbe000 + 352956023 UIKitCore 0x1aa31b8c0 0x1a9fbe000 + 352889624 UIKitCore 0x1aa3248c4 0x1a9fbe000 + 356576425 UIKitCore 0x1aa3c3bf8 0x1a9fbe000 + 421784826 UIKitCore 0x1aa3217dc 0x1a9fbe000 + 355324427 UIKitCore 0x1aae9d054 0x1a9fbe000 + 1559355628 UIKitCore 0x1aae90bb8 0x1a9fbe000 + 1554322429 UIKitCore 0x1aae90a9c 0x1a9fbe000 + 1554294030 UIKitCore 0x1aae9fae0 0x1a9fbe000 + 1560444831 UIKitCore 0x1aaa33234 0x1a9fbe000 + 1096555632 UIKitCore 0x1aaa3260c 0x1a9fbe000 + 1096244433 UIKitCore 0x1aaa335a8 0x1a9fbe000 + 1096644034 UIKitCore 0x1aaa4478c 0x1a9fbe000 + 1103655635 BasicNav 0x1009ded14 -[AppDelegate application:didFinishLaunchingWithOptions:] + 27924 (AppDelegate.m:28)36 UIKitCore 0x1aa9f119c 0x1a9fbe000 + 1069506837 UIKitCore 0x1aa9f3008 0x1a9fbe000 + 10702856Thanks for any help,SimonUpdate: The same code crashes in XCode 7 and XCode 8. Runs OK in 10 (targetting iOS 10). Wondering if this will be fixed by Apple or we will need to port our app to a more recent XCode?
Posted Last updated
.