App no longer runs in latest Xcode 26 Beta 4 17A5285i

Since installing the latest Xcode Beta (version 26.0 beta 4 17A5285i), it no longer runs my app on iPhone 11 and also not on iPad 10.2, both running iOS 18.5.

The following code in

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

    ...
    // Preload both Tabbar Views
    NSArray* tabViewControllers = _tabBarController.viewControllers;
    _firstViewCntrl = (FirstViewController *)[tabViewControllers objectAtIndex:0];
    _secndViewCntrl = (SecondViewController *)[tabViewControllers objectAtIndex:1];
    
    UIView *dummy1 __unused;
    UIView *dummy2 __unused;
    
    dummy2 = _secndViewCntrl.view; // Triggers viewDidLoad <<<<< CRASH

will crash the app (the problem is with the 'view' attribute):

*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named TtGC5UIKit17UICoreHostingViewVCS_21ToolbarVisualProvider8RootView because no class named TtGC5UIKit17UICoreHostingViewVCS_21ToolbarVisualProvider8RootView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'

When I instead choose the Simulator (iPhone 16 Rosetta) as a destination, the app runs fine and the above assignment will trigger the viewDidLoad method of the second ViewController. So the Rosetta simulator runs fine, but the physical device fails.

The debugger console illustrates the differences between stable and beta Xcode versions (both on physical device):

Xcode Version 16.4 (16F6) from AppStore (app runs fine):

(lldb) p _secndViewCntrl.view
(UIView *) 0x0000000108366d00

Xcode Beta version 26.0 beta 4 17A5285i (app now crashes):

(lldb) p _secndViewCntrl.view
error: Execution was interrupted, reason: internal ObjC exception breakpoint(-9).. The process has been returned to the state before expression evaluation.

Any ideas?

Same problem after update to iOS 18.6.

I have opened FB19354105 with a small sample project to reproduce the problem. It turns out the code in AppDelegate is not relevant for the problem, it occurs if the storyboard includes a UIToolbar.

Problem persists in Xcode 26 Beta 5.

This is a known issue. Here's the main forums thread about it.

— Ed Ford,  DTS Engineer

App no longer runs in latest Xcode 26 Beta 4 17A5285i
 
 
Q