Skip to content

Stuck at "Restarting application on device" on Windows 10, iPad mini 2, compiled with NativeScript Sidekick cloud service. #5020

@bbc91

Description

@bbc91

Environment

  • CLI: 6.1.1
  • Cross-platform modules: 6.1.1
  • Android Runtime:
  • iOS Runtime: 6.1.0
  • Plugin(s):
{
  "name": "sellfer.pos",
  "version": "1.0.0",
  "description": "A native application built with NativeScript-Vue",
  "license": "MIT",
  "nativescript": {
    "id": "sellfer.pos",
    "tns-ios": {
      "version": "6.1.0"
    },
    "tns-android": {
      "version": "6.1.0"
    }
  },
  "dependencies": {
    "axios": "^0.18.0",
    "crypto": "^1.0.1",
    "mathjs": "^5.8.0",
    "moment": "^2.23.0",
    "nativescript-barcodescanner": "^3.0.0",
    "nativescript-carousel": "^4.1.0",
    "nativescript-gson": "file:app/services/gson",
    "nativescript-localize": "^4.1.1",
    "nativescript-localstorage": "^2.0.0",
    "nativescript-orientation": "^2.2.1",
    "nativescript-socket.io": "0.11.1",
    "nativescript-sound": "^1.0.4",
    "nativescript-toast": "2.0.0",
    "nativescript-ui-listview": "7.0.0",
    "nativescript-ui-sidedrawer": "7.0.0",
    "nativescript-vibrate": "^2.1.2",
    "nativescript-vue": "^2.0.0",
    "nativescript-vue-devtools": "^1.1.0",
    "rxjs-compat": "^6.3.3",
    "tns-core-modules": "~6.1.0",
    "uuid": "^3.3.2",
    "vuelidate": "^0.7.4",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "babel-loader": "^8.0.2",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "clean-webpack-plugin": "^0.1.19",
    "copy-webpack-plugin": "^4.5.2",
    "css-loader": "^1.0.0",
    "lazy": "1.0.11",
    "nativescript-dev-webpack": "~1.2.0",
    "nativescript-vue-template-compiler": "^2.0.0",
    "nativescript-worker-loader": "~0.9.0",
    "node-sass": "^4.9.2",
    "sass-loader": "^7.1.0",
    "terser-webpack-plugin": "^1.1.0",
    "vue-loader": "^15.2.6",
    "webpack": "^4.16.4",
    "webpack-bundle-analyzer": "~2.13.1",
    "webpack-cli": "^3.1.0"
  },
  "author": "Sellfer"
}

Describe the bug
I'm developing an iOS app for iPad using NativeScript Sidekick for building the app on the cloud and hot reloading it on the device. The build is successful, but the console is stuck at "Restarting application on device". I can open the app from the icon, and it works, but when I make a change on the code, the app is rebuild on the cloud, then message on the console appears "Webpack build done" and again, nothing refreshes on the device, so I have to turn off the Sidekick and build all over again, and then open the app manually again. The development will take forever like this, so before continue I'm looking for a solution.

This is when build the app and where it stuck:

[19-09-17 16:19:27.498] (CLI) Build finished successfully
[19-09-17 16:20:00.693] Build step completed.
[19-09-17 16:20:00.697] (CLI) Finished Cloud build of 'D:\work\htdocs\eshopr\epos-native-ios', platform: 'iOS', configuration: 'Debug' successfully. Downloading result...
[19-09-17 16:20:00.697] (CLI) Result url: https://livesync.ly/08auwke
[19-09-17 16:20:00.699] Download step started.
[19-09-17 16:20:06.989] Download step completed.
[19-09-17 16:20:06.993] (CLI) The result of Cloud build of 'D:\work\htdocs\eshopr\epos-native-ios', platform: 'iOS', configuration: 'Debug' successfully downloaded. OutputFilePath: D:\work\htdocs\eshopr\epos-native-ios\.cloud\ios\device\eposnativeios.ipa
[19-09-17 16:20:09.386] (CLI) Installing on device 2754145e6df4eb17bbaac7fac98da416f80b5ce8...
[19-09-17 16:20:22.338] (CLI) Successfully installed on device with identifier '2754145e6df4eb17bbaac7fac98da416f80b5ce8'.
[19-09-17 16:20:26.901] (CLI) Restarting application on device 2754145e6df4eb17bbaac7fac98da416f80b5ce8...

And this is when I make a code change:

[19-09-17 16:22:14.826] (CLI) File change detected. Starting incremental webpack compilation...
[19-09-17 16:22:15.794] (CLI) Hash: bc38012bd79615540343
[19-09-17 16:22:15.794] (CLI) Version: webpack 4.40.2
[19-09-17 16:22:15.794] (CLI) Time: 944ms
[19-09-17 16:22:15.794] (CLI) Built at: 09/17/2019 4:22:15 PM
[19-09-17 16:22:15.794] (CLI)                                             Asset       Size                                          Chunks                               Chunk Names
[19-09-17 16:22:15.794] (CLI)              538a44b5490fda08cd60.hot-update.json   48 bytes                                                  [emitted] [immutable] [hmr]  
[19-09-17 16:22:15.794] (CLI)         bundle.538a44b5490fda08cd60.hot-update.js   13.2 KiB                                          bundle  [emitted] [immutable] [hmr]  bundle
[19-09-17 16:22:15.794] (CLI)                                         bundle.js    1.1 MiB                                          bundle  [emitted]                    bundle
[19-09-17 16:22:15.794] (CLI)                                        runtime.js   71.7 KiB                                         runtime  [emitted]                    runtime
[19-09-17 16:22:15.794] (CLI) tns_modules/tns-core-modules/inspector_modules.js  744 bytes  tns_modules/tns-core-modules/inspector_modules  [emitted]                    tns_modules/tns-core-modules/inspector_modules
[19-09-17 16:22:15.794] (CLI)  + 1 hidden asset
[19-09-17 16:22:15.794] (CLI) Entrypoint bundle = runtime.js vendor.js bundle.js bundle.538a44b5490fda08cd60.hot-update.js
[19-09-17 16:22:15.794] (CLI) Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[19-09-17 16:22:15.794] (CLI) [./ sync ^\.\/app\.(css|scss|less|sass)$] . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ 175 bytes {bundle} [built]
[19-09-17 16:22:15.794] (CLI) [./ sync recursive (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 865 bytes {bundle} [built]
[19-09-17 16:22:15.794] (CLI) [./services/gson/platforms/android/AndroidManifest.xml] 352 bytes {bundle} [optional] [built] [failed] [1 error]
[19-09-17 16:22:15.794] (CLI)     + 1062 hidden modules
[19-09-17 16:22:15.794] (CLI) WARNING in ./services/gson/platforms/android/AndroidManifest.xml 1:0
[19-09-17 16:22:15.794] (CLI) Module parse failed: Unexpected token (1:0)
[19-09-17 16:22:15.794] (CLI) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
[19-09-17 16:22:15.794] (CLI) > <?xml version="1.0" encoding="utf-8"?>
[19-09-17 16:22:15.794] (CLI) | <manifest xmlns:android="http://schemas.android.com/apk/res/android">
[19-09-17 16:22:15.794] (CLI) | 
[19-09-17 16:22:15.794] (CLI)  @ \b_[\w-]*\.)scss)$ (. sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$) ./services/gson/platforms/android/AndroidManifest.xml
[19-09-17 16:22:15.794] (CLI)  @ ./main.js
[19-09-17 16:22:15.855] (CLI) Webpack compilation complete. Watching for file changes.
[19-09-17 16:22:15.857] (CLI) Webpack build done!

Nothing happens on the device after. It is just stays with the previous version of the app and I have to restart the nativescript sidekick and build again so I can have the changes on the device.

To Reproduce
Build iOS app on the NativeScript Sideckick cloud.

Expected behavior
When the app is build and installed on the device, it should reload the app and open it, then on any change of code, after the fast rebuilding with hot module replacement it should refresh on the device with the new changes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions