Skip to content

LiveSync doesn't work when the app is not installed on the iOS simulator #1225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vchimev opened this issue Nov 20, 2015 · 2 comments
Closed
Milestone

Comments

@vchimev
Copy link

vchimev commented Nov 20, 2015

Preconditions:

  • started iOS simulator;
  • app not installed on the simulator;

Execute:
node_modules/.bin/tns livesync ios --emulator --path myGroceries --log trace

stderr: 
Error: Command xcrun with arguments simctl get_app_container 4DF4BF74-B903-4072-95A8-C4F1A9B373D0 org.nativescript.myGroceries failed with exit code 2. Error output:
 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory
: Command xcrun with arguments simctl get_app_container 4DF4BF74-B903-4072-95A8-C4F1A9B373D0 org.nativescript.myGroceries failed with exit code 2. Error output:
    at FiberFuture.Future.wait (/Users/vchimev/Work/release/node_modules/fibers/future.js:535:15)
    at /Users/vchimev/Work/release/node_modules/nativescript/lib/common/errors.js:109:33
    at Function.settle (/Users/vchimev/Work/release/node_modules/fibers/future.js:249:26)
    at FiberFuture.Future.wait (/Users/vchimev/Work/release/node_modules/fibers/future.js:534:10)
    at /Users/vchimev/Work/release/node_modules/nativescript/lib/common/services/commands-service.js:87:106
    at Function.settle (/Users/vchimev/Work/release/node_modules/fibers/future.js:249:26)
    at FiberFuture.Future.wait (/Users/vchimev/Work/release/node_modules/fibers/future.js:534:10)
    at /Users/vchimev/Work/release/node_modules/nativescript/lib/common/dispatchers.js:38:85
    at Function.settle (/Users/vchimev/Work/release/node_modules/fibers/future.js:249:26)
    at FiberFuture.Future.wait (/Users/vchimev/Work/release/node_modules/fibers/future.js:534:10)
    at /Users/vchimev/Work/release/node_modules/nativescript/lib/nativescript-cli.js:20:45
    - - - - -
 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory

    at ChildProcess.<anonymous> (/Users/vchimev/Work/release/node_modules/ios-sim-portable/lib/child-process.js:40:26)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)
@vchimev
Copy link
Author

vchimev commented Dec 1, 2015

Tested with 1.5.1 RC.

If I execute the following commands when the app is not installed on the simulaotr:

  • tns livesync ios --emulator - installs an older version of the app, which is not correct
  • tns run ios --emulator - installs the latest version of the app

vchimev pushed a commit to NativeScript/nativescript-cli-tests that referenced this issue Dec 1, 2015
@teobugslayer teobugslayer modified the milestones: 1.5.2, 1.5.1 Dec 1, 2015
vchimev pushed a commit to NativeScript/nativescript-cli-tests that referenced this issue Dec 8, 2015
@vchimev
Copy link
Author

vchimev commented Dec 8, 2015

Update:

the exact workflow for the issue described in the previous comment is:

  1. tns create testApp
  2. cd testApp
  3. tns platform add ios
  4. tns build ios
  5. make a change
  6. tns livesync ios --emulator

As a result, the app built at step 4 get deployed on the simulator which is correct because the livesync command does not rebuild the app,.

@vchimev vchimev added 3 - Done and removed 0 - Open labels Dec 8, 2015
@vchimev vchimev closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants