You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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:
Workaround:
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:
The text was updated successfully, but these errors were encountered: