Skip to content

Crash on iOS with native back gesture after macOS Tahoe / Xcode26 update #10940

@anjak03

Description

@anjak03

Description

After updating my macOS to Tahoe 26.0 and consequently Xcode to 26.0, my iOS builds started crashing when using the native iOS back swipe gesture.

When I navigate between pages in my NativeScript app and go back using the system gesture (swipe from the left edge), the app crashes after a few quick back-and-forth navigations.

The crash seems to happen more consistently if I swipe quickly between pages multiple times (e.g. go A → B → A → B → A → C using the native back gesture).


Crash log

*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error:
Uncaught TypeError: Cannot read properties of null (reading 'view')
at
	createNativeView(file:///app/vendor.js:42548:36)
	at _setupUI(file:///app/vendor.js:28009:31)
	at _addViewCore(file:///app/vendor.js:27866:18)
	at _addView(file:///app/vendor.js:27854:14)
	at UIViewControllerImpl.viewWillAppear(file:///app/vendor.js:42281:27)
', reason: '(null)'
*** First throw call stack:
(0x19dc8e8c8 0x19ac057c4 0x1076fe4d0 0x10645063c 0x10646a2d0 0x10648b4c0 0x106460778 0x1064606b4 0x19dc30520 0x19dbe2d14 0x19dbe1c44 0x23cfce498 0x1a355cddc 0x1a3501b0c 0x10770c044 0x107708dac 0x1076f0710 0x1076b831c 0x1076f9c68 0x1042242b0 0x19ac5ae28)
terminating due to uncaught exception of type NSException

Environment

  • macOS: 26.0 (Tahoe)
  • Xcode: 26.0
  • NativeScript CLI: 8.8.3
  • Runtime: @nativescript/ios 8.9.4
  • Runtime: @nativescript/core 8.9.9
  • Framework: Angular 18.0.3

Steps to reproduce

  1. Run the app on iOS (device or simulator).
  2. Navigate through a few pages (A → B → C, etc.).
  3. Swipe back using the native iOS back gesture several times quickly.
  4. After 2-3 rapid gestures, the app crashes.

Expected behavior

The app should handle native back navigation gracefully without crashing.


Actual behavior

After a few rapid back gestures, the app crashes with Cannot read properties of null (reading 'view').


Notes

  • This issue only appeared after updating to macOS Tahoe 26.0 / Xcode 26.0.
  • The same app worked fine on the previous macOS/Xcode combination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions