Skip to content
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

Livesync not generating metadata after a native plugin is added #1318

Closed
jasssonpet opened this issue Dec 7, 2015 · 3 comments
Closed

Livesync not generating metadata after a native plugin is added #1318

jasssonpet opened this issue Dec 7, 2015 · 3 comments

Comments

@jasssonpet
Copy link
Contributor

At the moment if you add a plugin with a native iOS dependency and then try to run livesync, CocoaPods are getting installed, but no metadata is being generated so the APIs are unavailable.

Example:

$ tns create TestApp
# Do some work
$ tns plugin add TestPlugin
$ tns livesync ios # Livesync doesn't have metadata for new APIs

Workaround:

$ tns create TestApp
# Do some work
$ tns plugin add TestPlugin
$ tns run ios # Call build explicitly generating new metadata
$ tns livesync ios # Livesync can use new APIs from now on

P.S. I believe that the situation with Android is similar, but I haven't tested it.

P.P.S. I think that the same thing is happening if I create an app and try to livesync immediately after that:

$ tns create TestApp
$ tns livesync ios
shell.js: internal error
TypeError: Path must be a string. Received null
IosEmulatorServices.prototype.syncCore
@Fatme Fatme added the docs label Dec 8, 2015
@Fatme
Copy link
Contributor

Fatme commented Dec 8, 2015

The described behavior is expected, we need to provide some documentation with all restrictions from livesync.

@enchev
Copy link
Contributor

enchev commented May 25, 2016

In my opinion we should enable by default livesync --watch similar to AppBuilder CLI. In this way the app will be updated automagically after every change in XML, JS, CSS, etc. Rebuilding plugins can be time consuming and we should be extra careful, still we can show at least warning that plugin is added and the app should be rebuilt.

@enchev
Copy link
Contributor

enchev commented Jun 8, 2016

Merged with #1366

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