Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ReferenceError: NSURLSessionConfiguration is not defined #10497

Closed
Labels
@b4rtt

Description

@b4rtt

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 18183for 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```yamlOS: macOS 14.3.1CPU: (8) arm64 Apple M1Shell: /bin/zshnode: 20.9.0npm: 10.1.0nativescript: 8.6.5# androidjava: 18.0.1.1ndk: Not Foundapis: Not Foundbuild_tools: Not Foundsystem_images: Not Found# iosxcode: 15.3/15E204acocoapods: 1.14.3python: 2.7.18python3: 3.10.5ruby: 2.6.10platforms:  - 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp