nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

App crashes on iOS with NativeScript 4.1

Open miguelopezv opened this issue 8 years ago • 2 comments

App previously worked with 4.0.1, updated to 4.1 version and now it crash.

Which platform(s) does your issue occur on?

  • iOS
  • iOS 11.3
  • emulator and device.

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.1.2
  • Cross-platform modules: 4.1.0
  • Runtime(s): tns-ios 4.1.1
  • Plugin(s):
"dependencies": {
   "@angular/animations": "~6.0.6",
   "@angular/common": "~6.0.6",
   "@angular/compiler": "~6.0.6",
   "@angular/core": "~6.0.6",
   "@angular/forms": "~6.0.6",
   "@angular/http": "~6.0.6",
   "@angular/platform-browser": "~6.0.6",
   "@angular/platform-browser-dynamic": "~6.0.6",
   "@angular/router": "~6.0.6",
   "nativescript-angular": "~6.0.6",
   "nativescript-camera": "^4.0.2",
   "nativescript-imagepicker": "^6.0.1",
   "nativescript-iqkeyboardmanager": "^1.2.0",
   "nativescript-ngx-fonticon": "^4.1.0",
   "nativescript-plugin-firebase": "^5.2.0",
   "nativescript-social-login": "^4.0.1",
   "nativescript-sqlite": "^2.0.1",
   "nativescript-theme-core": "~1.0.4",
   "nativescript-ui-listview": "^3.5.8",
   "nativescript-ui-sidedrawer": "~4.1.0",
   "reflect-metadata": "~0.1.10",
   "rxjs": "~6.1.0",
   "rxjs-compat": "^6.2.1",
   "tns-core-modules": "4.1.0",
   "zone.js": "~0.8.26"
 },
 "devDependencies": {
   "@angular/compiler-cli": "~6.1.0-beta.3",
   "@ngtools/webpack": "6.1.0-rc.0",
   "babel-traverse": "6.26.0",
   "babel-types": "6.26.0",
   "babylon": "6.18.0",
   "codelyzer": "~4.3.0",
   "lazy": "1.0.11",
   "nativescript-dev-sass": "~1.6.0",
   "nativescript-dev-typescript": "~0.7.0",
   "nativescript-dev-webpack": "~0.14.0",
   "tns-platform-declarations": "^4.0.0",
   "tslint": "~5.10.0",
   "typescript": "~2.7.2"
 }

Please, tell us how to recreate the issue in as much detail as possible.

Just ran the app using ins run iOS --emulator, the app is installed and shows the splash screen but then it fails.

Is there any code involved?

***** Fatal JavaScript exception - application has been terminated. ***** Native stack trace: 1 0x1030be649 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool) 2 0x1030f1860 -[TNSRuntime executeModule:referredBy:] 3 0x10273ca53 main 4 0x107c919ed start JavaScript stack trace: 1 __@file:///app/vendor.js:132465:25 2 __extends@file:///app/vendor.js:132466:86 3 @file:///app/vendor.js:132760:52 4 ./delegate.ios.ts@file:///app/vendor.js:132792:2 5 webpack_require@file:///app/bundle.js:76:34 6 ./app.component.ts@file:///app/bundle.js:335:33 7 webpack_require@file:///app/bundle.js:76:34 8 ./app.module.ts@file:///app/bundle.js:610:91 9 webpack_require@file:///app/bundle.js:76:34 10 ./main.ts@file:///app/bundle.js:4154:88 11 webpack_require@file:///app/bundle.js:76:34 12 checkDeferredModules@file:///app/bundle.js:45:42 13 @file:///app/bundle.js:151:38 14 anonymous@file:///app/bundle.js:152:12 15 evaluate@[native code] 16 moduleEvaluation@[native code] 17 @[native code] 18 promiseReactionJob@[native code] 19 require@[native code] 20 anonymous@file:///app/starter.js:2:8 21 evaluate@[native code] 22 moduleEvaluation@[native code] 23 @[native code] 24 promiseReactionJob@[native code] JavaScript error: file:///app/vendor.js:132465:25: JS ERROR TypeError: Attempted to assign to readonly property.

miguelopezv avatar Jul 26 '18 19:07 miguelopezv

HI @miguelopezv, Try to remove the platforms, node_modules and hooks folders and rebuild the app via tns run ios. If the issue persists, please send us sample project, which can be used for debugging.

tsonevn avatar Jul 27 '18 05:07 tsonevn

closing due to inactivity

tsonevn avatar Jul 31 '18 10:07 tsonevn