Skip to content

Cannot run livesync with ios simulator #2267

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
dharness opened this issue Nov 27, 2016 · 15 comments
Closed

Cannot run livesync with ios simulator #2267

dharness opened this issue Nov 27, 2016 · 15 comments
Assignees
Milestone

Comments

@dharness
Copy link

dharness commented Nov 27, 2016

With a new project created with tns create app --ng I am not able to run livesync. Doing so results in the following error:

    Error: EEXIST: file already exists, symlink '../semver/bin/semver' -> '/Users/dharness/Library/Developer/CoreSimulator/Devices/232F86F5-B6C1-44AF-A6D5-2936E8A9EAC4/data/Containers/Bundle/Application/6A27D2A5-3E10-4CF7-8F47-E0857AE3476A/sqwakapp.app/app/tns_modules/nativescript-dev-android-snapshot/node_modules/.bin/semver'

I've tried deleting the simulator, making new projects, restarting the mac.. to no avail.

EDIT:

I have tried without the --ng flag as well with the same result. I have temporarily gone back to 2.3 to generate my project avoid the issue, and am running it using [email protected] cli with no problems.

Of course, i have to temporarily downgrade every time I want to create a new project.

@indrasantosa
Copy link

+1 here

@tzraikov
Copy link
Contributor

tzraikov commented Dec 5, 2016

@dharness and @indrasantosa We addressed the symlink issue with our latest release 2.4.1. Plase, could you confirm that everything is OK when running this version?

@tzraikov tzraikov self-assigned this Dec 5, 2016
@indrasantosa
Copy link

Thanks @tzraikov, I have done the fix myself on my local repository, it is now fine :) Cheeer!

@tzraikov tzraikov closed this as completed Dec 5, 2016
@buzzspaceltd
Copy link

@dharness @tzraikov I am having the same issue. I just upgraded to 2.4.2 but the issue persists. Any suggestions on a fix?

@indrasantosa
Copy link

indrasantosa commented Dec 27, 2016 via email

@ludwiktrammer
Copy link

ludwiktrammer commented Dec 29, 2016

I also have the same issue using NativeScript 2.4.2...
I'm using the most recent 0.7.5 version of sheeljs.

@lukeramsden
Copy link

I'm still getting this error with the latest version tns update gives me.

@vchimev
Copy link

vchimev commented Jan 3, 2017

@buzzspaceltd, @ludwiktrammer, @lukeramsden,

Guys, could you please share exact steps to reproduce along with the package.json file of the projects?

I am unable to reproduce such an issue with CLI version 2.4.2. CC: @tzraikov

@vchimev vchimev reopened this Jan 3, 2017
@lukeramsden
Copy link

This is my package.json. What I do is clone the repo, run tns install, then tns run ios --emulator, which works fine, then I run tns livesync ios --emulator --watch and it gives me this error:

EEXIST: file already exists, symlink '../rimraf/bin.js' -> '/Users/*REDACTED*/Library/Developer/CoreSimulator/Devices/CD80306B-7220-4CFD-BA20-026D12FC73C8/data/Containers/Bundle/Application/F9FCCEC9-F518-4CF5-B949-1D75A6B3A675/tissmobile.app/app/tns_modules/nativescript-i18n/node_modules/fs-extra/node_modules/.bin/rimraf'

@vchimev
Copy link

vchimev commented Jan 3, 2017

Thanks a lot, @lukeramsden! I successfully reproduced the shell.js error you posted.

@vchimev vchimev added the bug label Jan 3, 2017
@vchimev
Copy link

vchimev commented Jan 3, 2017

@lukeramsden, @buzzspaceltd, @ludwiktrammer,

The issue here is that all .bin directories inside node_modules should be ignored and should not be copied to platforms folder.

A temporary workaround is to remove them manually as follows: find . -iname .bin | xargs rm -rfv

@lukeramsden
Copy link

lukeramsden commented Jan 3, 2017

@vchimev Is this going to be fixed in a nativescript-cli updated? Or should I just run this before I try to livesync? For now I'm just gonna make an npm script for this

@vchimev
Copy link

vchimev commented Jan 3, 2017

@lukeramsden,

it should be enough to run it only once to clean up the .bin directories in node_modules and platforms folders; than use the run and livesync commands with no problem.

We are going to fix it for sure in next minor release (2.5.0) this month along with lots of livesync improvements (#2374); will further investigate if we could provide a patch update (2.4.3) prior that and update this issue if so.

@vchimev vchimev added this to the 2.5.0 milestone Jan 3, 2017
@lukeramsden
Copy link

@vchimev My suggestion is a tns clean command. Maybe you could do tns clean node and tns clean platform etc

@vchimev
Copy link

vchimev commented Jan 4, 2017

This problem does not exist in master branch of NativeScript CLI. It could be installed by:

npm i -g nativescript@next

and it will take part of 2.5.0 official release.

@vchimev vchimev closed this as completed Jan 4, 2017
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

7 participants