Xcode 26.0 Share Extension crashes with NSInternalInconsistencyException on iOS 26.0

Issue : When creating a new project in Xcode 26.0 and adding a Share Extension target without modifying any code, the app crashes upon displaying the extension screen with the following error:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The layout constraints still need update after sending -updateConstraints to <_UINavigationBarTitleControl: 0x105b9cc00; frame = (0 0; 0 0); layer = <CALayer: 0x10b834270>>. _UINavigationBarTitleControl or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them. Both are programming errors.'

Environment : Xcode 26.0 iOS 26.0 (physical device) Note: This issue does not occur when running on iOS 18.3.1 (physical device).

Temporary Workaround : Adding the following implementation to the isContentValid method prevents the exception from occurring:

Objective-C- (BOOL)isContentValid { // Do validation of contentText and/or NSExtensionContext attachments here if (@available(iOS 26, *)) { self.navigationController.navigationBarHidden = YES; } return YES; }

Questions :

  1. Is there any alternative way to avoid this exception?
  2. Since this crash occurs with the default implementation generated by Xcode, is there any plan to fix it in future updates?

I have the same issue. However the workaround did not help in my case.

Hi!

Could you share the exact steps to reproduce or an archive of your project/template?

Thank you.

Hi! I have exactly the same problem. I could reproduce with the following steps:

  1. Create a new multi platform app
  2. In the application, add a "share extension" target (click + and search for share extension)
  3. select the share ext target and run on a simulator
  4. chose the photo app to run and test the share button
  5. pick a photo and share with the extension
  6. the extension crashes and a backtrace is shown with this message.

SDK versions

DriverKit SDKs:
        DriverKit 25.0                  -sdk driverkit25.0

iOS SDKs:
        iOS 26.0                        -sdk iphoneos26.0

iOS Simulator SDKs:
        Simulator - iOS 26.0            -sdk iphonesimulator26.0

macOS SDKs:
        macOS 26.0                      -sdk macosx26.0
        macOS 26.0                      -sdk macosx26.0

tvOS SDKs:
        tvOS 26.0                       -sdk appletvos26.0

tvOS Simulator SDKs:
        Simulator - tvOS 26.0           -sdk appletvsimulator26.0

visionOS SDKs:
        visionOS 26.0                   -sdk xros26.0

visionOS Simulator SDKs:
        Simulator - visionOS 26.0       -sdk xrsimulator26.0

watchOS SDKs:
        watchOS 26.0                    -sdk watchos26.0

watchOS Simulator SDKs:
        Simulator - watchOS 26.0        -sdk watchsimulator26.0

I can share a link to a zip of the project and a step recording if needed, but the forum won't allow me to share a zip.

After further investigation, this problem appears to be happening in iOS26.0 and fixed in the next version iOS26.1 as seen in github

ShareExtensions using SLComposeServiceViewController built with Xcode 26.1 would keep crashing on iOS26.0

ShareExtensions using SLComposeServiceViewController build with Xcode 26.0 seems to work on iOS26.1

Xcode 26.0 Share Extension crashes with NSInternalInconsistencyException on iOS 26.0
 
 
Q