Description
Issue Description
After installing the project ns create example-app --ng
and after updating the XCode SDK to version 17.4, the application cannot run on a real device. The app installs but after launching the app a black screen appears and after a while the app crashes. Interestingly, everything works properly in the simulator.
The app does not work even after building it for the AppStore. The app builds fine, I upload it to the Appstore and after installing it via Testflight, the black screen appears again and the app crashes after a while.
Just yesterday I had the SDK 17.2 installed in XCode and everything worked on it.
I first detected the whole problem on my production app, which I've had in the Appstore for a few years now, and now I can't release an update.
So I tried to create a completely clean project using ns create example-app --ng.
Reproduction
ns create example-app --ng
ns run ios (have connected iPhone 13 pro)
Relevant log output (if applicable)
Here is the error code that appears in the console after a while: (running ns run ios - with connected iphone 13 PRO):
Successfully run application org.nativescript.app on device with ID 00008110-00011DC922F9801EES.
NativeScript debugger has opened inspector socket on port 18183 for org.nativescript.app.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error:
Error calling module function
ReferenceError: NSURLSessionConfiguration is not defined
File: (file: src/webpack:/app/webpack/bootstrap:27:0
StackTrace:
./node_modules/@nativescript/core/http/http-request/index.ios.js(file: src/webpack:/app/node_modules/@nativescript/core/http/http-request/index.ios.js:15:0
at __webpack_require__(file: src/webpack:/app/webpack/bootstrap:24:0
at fn(file: src/webpack:/app/webpack/runtime/hot module replacement:62:0
at ./node_modules/@nativescript/core/xhr/index.js(file:///app/vendor.js:47420:63)
at __webpack_require__(file: src/webpack:/app/webpack/bootstrap:24:0
at fn(file: src/webpack:/app/webpack/runtime/hot module replacement:62:0
at (file: src/webpack:/app/node_modules/@nativescript/core/globals/index.js:263:43
at loadModule(file: src/webpack:/app/node_modules/@nativescript/core/globals/index.js:202:0
at get(file: src/webpack:/app/node_modules/@nativescript/core/globals/index.js:8:0
at (file: src/webpack:/app/node_modules/@nativescript/core/fetch/index.js:12:0
at (file: src/webpack:/app/node_modules/@nativescript/core/fetch/index.js:17:13
at ./node_modules/@nativescript/core/fetch/index.js(file: src/webpack:/app/node_modules/@nativescript/core/fetch/index.js:539:1
at __webpack_require__(file: src/webpack:/app/webpack/bootstrap:24:0
at fn(file: src/webpack:/app/webpack/runtime/hot module replacement:62:0
at (file: src/webpack:/app/node_modules/@nativescript/core/globals/index.js:265:45
at loadModule(file: src/webpack:/app/node_modules/@nativescript/core/globals/index.js:202:0
at get(file:///app/ve<\M-b\M^@\M-&>
Successfully synced application org.nativescript.app on device 00008110-00011DC922F9801E.
### Environment
```yaml
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1
Shell: /bin/zsh
node: 20.9.0
npm: 10.1.0
nativescript: 8.6.5
# android
java: 18.0.1.1
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found
# ios
xcode: 15.3/15E204a
cocoapods: 1.14.3
python: 2.7.18
python3: 3.10.5
ruby: 2.6.10
platforms:
- DriverKit 23.4
- iOS 17.4
- macOS 14.4
- tvOS 17.4
- visionOS 1.1
- watchOS 10.4
Dependencies
"dependencies": {
"@angular/animations": "~16.2.0",
"@angular/common": "~16.2.0",
"@angular/compiler": "~16.2.0",
"@angular/core": "~16.2.0",
"@angular/forms": "~16.2.0",
"@angular/platform-browser": "~16.2.0",
"@angular/platform-browser-dynamic": "~16.2.0",
"@angular/router": "~16.2.0",
"@nativescript/angular": "^16.0.0",
"@nativescript/core": "~8.6.0",
"@nativescript/theme": "~3.0.2",
"rxjs": "~7.8.0",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~16.2.0",
"@angular/compiler-cli": "~16.2.0",
"@nativescript/types": "~8.6.0",
"@nativescript/webpack": "~5.0.18",
"@ngtools/webpack": "~16.2.0",
"typescript": "~5.1.6"
}
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct