Description
After upgrading to Xcode 26.4.1, a NativeScript Angular app crashes during startup on a physical iPhone when launched from Xcode.
The crash happens as soon as the app is launched and appears to come from NativeScript core/iOS runtime startup as per the error.
Environment
-
NativeScript CLI: 9.0.6
-
@nativescript/core: 9.0.0 // tried with 8.9.9 as well
-
@nativescript/ios: 9.0.3 // tried multiple versions like 8.9.5, 9.0.0, 9.0.1, 9.0.3, 9.0.4-next.2026-04-14-24422917278
-
@nativescript/angular: 17.1.1
-
Node: v24.7.0
-
ng: v20.3.1
-
npm: 11.5.1
-
Xcode: 26.4.1
-
Device: iPhone 15
-
Device iOS: 26.4.2 // also tried on 18.3.2
-
ns doctor Summary:
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ Xcode version 26.4.1 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 9.0.6 version and is up to date.
Error Information
NativeScript encountered a fatal error:
Error calling module function
Error calling module function
ReferenceError: UIContentSizeCategoryExtraSmall is not defined
Additional Investigation
I tried to implement the steps provided in the Issue #11135. I patched @nativescript/core/accessibility/font-scale.ios.js and vendor.js locally to remove direct UIContentSizeCategoryExtraSmall references and then the error falled back to UIContentSizeCategorySmall reference. I removed all UIContentSizeCategory... references and another error was thrown
Original error: Error calling module function ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined Original stack trace: ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined at new iOSApplication at app/vendor.js
After this I tried to run a basic template app created by running ns create my-app --template @nativescript/template-tab-navigation-ng to check if basic apps runs without an error but no luck, got the same errors and I am stuck.
Reproduction steps
- Create a new basic template project
- Open App in Xcode 26.4.1
- Run the App
- App crashes at runtime
Dependencies
"dependencies": {
"@angular/animations": "~17.3.12",
"@angular/common": "~17.3.12",
"@angular/compiler": "~17.3.12",
"@angular/core": "~17.3.12",
"@angular/forms": "~17.3.12",
"@angular/platform-browser": "~17.3.12",
"@angular/platform-browser-dynamic": "~17.3.12",
"@angular/router": "~17.3.12",
"@klippa/nativescript-http": "^3.0.4",
"@nativescript-community/ui-material-bottomnavigationbar": "file:custom_packages/@nativescript-community/ui-material-bottomnavigationbar",
"@nativescript-community/ui-material-core": "file:custom_packages/@nativescript-community/ui-material-core",
"@nativescript-community/ui-material-ripple": "file:custom_packages/@nativescript-community/ui-material-ripple",
"@nativescript/angular": "~17.1.1",
"@nativescript/appversion": "^2.0.0",
"@nativescript/core": "~8.9.9",
"@nativescript/email": "^2.0.5",
"@nativescript/fingerprint-auth": "^8.1.0",
"@nativescript/firebase-analytics": "^5.0.2",
"@nativescript/firebase-core": "^5.0.2",
"@nativescript/firebase-messaging": "^5.0.2",
"@nativescript/firebase-messaging-core": "^5.0.2",
"@nativescript/firebase-remote-config": "^5.0.2",
"@nativescript/iqkeyboardmanager": "file:custom_packages/iqkeyboardmanager",
"@nativescript/secure-storage": "^4.0.1",
"@nativescript/theme": "~3.0.0",
"@nstudio/nativescript-carousel": "^8.0.3",
"@nstudio/nativescript-fancyalert": "^4.0.0",
"@nstudio/nativescript-loading-indicator": "^4.1.0",
"@nstudio/root-detection": "^2.0.1",
"nativescript-modal-datetimepicker": "^2.1.5",
"nativescript-phone": "^3.0.3",
"nativescript-ripple": "^4.0.1",
"nativescript-store-ratings": "^1.0.0",
"nativescript-ui-listview": "~15.2.3",
"reflect-metadata": "~0.1.12",
"rxjs": "^7.8.0",
"zone.js": "~0.14.0"
},
"overrides": {
"@nativescript/android": "9.0.0"
},
"devDependencies": {
"@angular/common": "~17.3.12",
"@angular/compiler": "~17.3.12",
"@angular/compiler-cli": "~17.3.12",
"@nativescript/android": "9.0.0",
"@nativescript/eslint-plugin": "0.0.4",
"@nativescript/ios": "9.0.3",
"@nativescript/types": "~8.9.1",
"@nativescript/webpack": "5.0.24",
"@ngtools/webpack": "~17.3.17",
"@typescript-eslint/eslint-plugin": "^8.44.0",
"@typescript-eslint/parser": "^8.44.0",
"eslint": "^9.35.0",
"sass-loader": "^12.1.0",
"typescript": "~5.4.0"
},
Logs
before making any changes in @nativescript/core
***** JavaScript exception occurred - detailed stack trace follows *****
NativeScript encountered an error:
Error in require() call:
Requested module: '/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/tns_modules/inspector_modules.js'
Called from: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app
Resolved path: /var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/tns_modules/inspector_modules.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIContentSizeCategorySmall is not defined
Original stack trace:
ReferenceError: UIContentSizeCategorySmall is not defined
at ./node_modules/@nativescript/core/accessibility/font-scale.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116017:6)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/accessibility/accessibility-css-helper.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:115290:69)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application-common.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116596:97)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:117495:77)
Error: Error in require() call:
Requested module: '/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/tns_modules/inspector_modules.js'
Called from: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app
Resolved path: /var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/tns_modules/inspector_modules.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIContentSizeCategorySmall is not defined
Original stack trace:
ReferenceError: UIContentSizeCategorySmall is not defined
at ./node_modules/@nativescript/core/accessibility/font-scale.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116017:6)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/accessibility/accessibility-css-helper.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:115290:69)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application-common.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116596:97)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:117495:77)
File: (<unknown>:1:231)
StackTrace:
require(:1:232)
======================================
Error on app initialization.
Please fix the error and save the file to auto reload the app.
======================================
***** End stack trace - showing error modal and continuing execution *****
***** Error handled gracefully - app continues without crash *****
***** JavaScript exception occurred - detailed stack trace follows *****
NativeScript encountered an error:
Error in require() call:
Requested module: './'
Called from: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app
Resolved path: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/bundle.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIContentSizeCategorySmall is not defined
Original stack trace:
ReferenceError: UIContentSizeCategorySmall is not defined
at ./node_modules/@nativescript/core/accessibility/font-scale.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116017:6)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/accessibility/accessibility-css-helper.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:115290:69)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application-common.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116596:97)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:117495:77)
Error: Error in require() call:
Requested module: './'
Called from: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app
Resolved path: /private/var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/bundle.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIContentSizeCategorySmall is not defined
Original stack trace:
ReferenceError: UIContentSizeCategorySmall is not defined
at ./node_modules/@nativescript/core/accessibility/font-scale.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116017:6)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/accessibility/accessibility-css-helper.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:115290:69)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application-common.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:116596:97)
at __webpack_require__ (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/12C5B677-B15A-4BA9-A75F-5985409D4B46/Phoenix.app/app/vendor.js:117495:77)
File: (<unknown>:1:231)
StackTrace:
require(:1:232)
======================================
Error on app initialization.
Please fix the error and save the file to auto reload the app.
======================================
***** End stack trace - showing error modal and continuing execution *****
***** Error handled gracefully - app continues without crash *****
--------------------------------------------------------------------------------------------------------------------------------------
after removing all references of UIContentSizeCategory...
NativeScript encountered an error:
Error in require() call:
Requested module: '/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/tns_modules/inspector_modules.js'
Called from: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app
Resolved path: /var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/tns_modules/inspector_modules.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
Original stack trace:
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
at new iOSApplication (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3075:38)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3430:16)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/index.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3492:70)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/globals/index.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:10774:5)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
Error: Error in require() call:
Requested module: '/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/tns_modules/inspector_modules.js'
Called from: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app
Resolved path: /var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/tns_modules/inspector_modules.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
Original stack trace:
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
at new iOSApplication (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3075:38)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3430:16)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/index.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3492:70)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/globals/index.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:10774:5)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
File: (<unknown>:1:231)
StackTrace:
require(:1:232)
======================================
Error on app initialization.
Please fix the error and save the file to auto reload the app.
======================================
***** End stack trace - showing error modal and continuing execution *****
***** Error handled gracefully - app continues without crash *****
***** JavaScript exception occurred - detailed stack trace follows *****
NativeScript encountered an error:
Error in require() call:
Requested module: './'
Called from: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app
Resolved path: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/bundle.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
Original stack trace:
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
at new iOSApplication (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3075:38)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3430:16)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/index.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3492:70)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/globals/index.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:10774:5)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
Error: Error in require() call:
Requested module: './'
Called from: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app
Resolved path: /private/var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/bundle.js
JavaScript stack trace:
at require (:1:232)
Original error:
Error calling module function
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
Original stack trace:
ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined
at new iOSApplication (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3075:38)
at ./node_modules/@nativescript/core/application/application.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3430:16)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/application/index.ios.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:3492:70)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
at ./node_modules/@nativescript/core/globals/index.js (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/vendor.js:10774:5)
at __webpack_require__ (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:28:33)
at fn (file:///var/containers/Bundle/Application/515892AA-9B05-4601-B98A-E5077E89CCAE/Phoenix.app/app/runtime.js:221:21)
File: (<unknown>:1:231)
StackTrace:
require(:1:232)
======================================
Error on app initialization.
Please fix the error and save the file to auto reload the app.
======================================
***** End stack trace - showing error modal and continuing execution *****
***** Error handled gracefully - app continues without crash *****
Description
After upgrading to Xcode 26.4.1, a NativeScript Angular app crashes during startup on a physical iPhone when launched from Xcode.
The crash happens as soon as the app is launched and appears to come from NativeScript core/iOS runtime startup as per the error.
Environment
NativeScript CLI: 9.0.6
@nativescript/core: 9.0.0 // tried with 8.9.9 as well
@nativescript/ios: 9.0.3 // tried multiple versions like 8.9.5, 9.0.0, 9.0.1, 9.0.3, 9.0.4-next.2026-04-14-24422917278
@nativescript/angular: 17.1.1
Node: v24.7.0
ng: v20.3.1
npm: 11.5.1
Xcode: 26.4.1
Device: iPhone 15
Device iOS: 26.4.2 // also tried on 18.3.2
ns doctor Summary:
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ Xcode version 26.4.1 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 9.0.6 version and is up to date.
Error Information
NativeScript encountered a fatal error:
Error calling module function
Error calling module function
ReferenceError: UIContentSizeCategoryExtraSmall is not defined
Additional Investigation
I tried to implement the steps provided in the Issue #11135. I patched
@nativescript/core/accessibility/font-scale.ios.jsandvendor.jslocally to remove direct UIContentSizeCategoryExtraSmall references and then the error falled back to UIContentSizeCategorySmall reference. I removed all UIContentSizeCategory... references and another error was thrownOriginal error: Error calling module function ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined Original stack trace: ReferenceError: UIApplicationDidFinishLaunchingNotification is not defined at new iOSApplication at app/vendor.jsAfter this I tried to run a basic template app created by running ns create my-app --template @nativescript/template-tab-navigation-ng to check if basic apps runs without an error but no luck, got the same errors and I am stuck.
Reproduction steps
Dependencies
Logs
after removing all references of UIContentSizeCategory...