Skip to content

Adding new files during livesync doesn't succeed on iOS Devices #2661

@pkoleva

Description

@pkoleva

Tell us about the problem

I started run command and added new files to my project but I got errors

Which platform(s) does your issue occur on?

iOS device only

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

  • CLI: 3.0

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

Scenario 1

  1. tns run ios
  2. Add a file in app folder
    Result: Unable to sync files. Error is: Multiple errors were thrown:
    Could not open file: /Users/koleva/Work/Stable/appInst/platforms/ios/appInst/app/new.js

Scenario 2

  1. Add a new image in AppResources
  2. Rename it
    Result: The console is stuck on Installing...
Installing...
Uninstalling org.nativescript.appInst from devices with identifiers: b2365713167146c9fcf4f86a2ebca88c00340a3e.
Received multiple results:
{ b2365713167146c9fcf4f86a2ebca88c00340a3e:
  [ { deviceId: 'b2365713167146c9fcf4f86a2ebca88c00340a3e',
      response: 'Successfully uninstalled application' } ] }
Application org.nativescript.appInst has been uninstalled successfully.
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/koleva/Work/Stable/node_modules/nativescript/lib/hooks',
 '/Users/koleva/Work/Stable/node_modules/nativescript/lib/common/hooks',
 '/Users/koleva/Work/Stable/appInst/hooks' ]
BeforeHookName for command install is before-install
Installing /Users/koleva/Work/Stable/appInst/platforms/ios/build/device/appInst.ipa on devices with identifiers: b2365713167146c9fcf4f86a2ebca88c00340a3e.
Received multiple results:
{ b2365713167146c9fcf4f86a2ebca88c00340a3e:
  [ { deviceId: 'b2365713167146c9fcf4f86a2ebca88c00340a3e',
      response: 'Successfully installed application' } ] }
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/koleva/Work/Stable/node_modules/nativescript/lib/hooks',
 '/Users/koleva/Work/Stable/node_modules/nativescript/lib/common/hooks',
 '/Users/koleva/Work/Stable/appInst/hooks' ]
AfterHookName for command install is after-install
Uploading files:
[ { source: '/Users/koleva/Work/Stable/appInst/platforms/ios/build/device/.nsbuildinfo',
   destination: 'Library/Application Support/LiveSync/.nsbuildinfo' } ]
For application org.nativescript.appInst on device with identifier: b2365713167146c9fcf4f86a2ebca88c00340a3e.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions