-
-
Notifications
You must be signed in to change notification settings - Fork 195
Description
tns debug ios --no-rebuild --watch
doesn't build the app (as expected). If --no-rebuild
argument is dropped still no build is triggered. In both cases if the app was not previously built (there is no app bundle in the platform's build directory) the command will fail with ENOENT: no such file or directory, scandir '/Users/buhov/Desktop/TheApp/platforms/ios/build/emulator
.
This means that the command will always fail in a brand new or newly cloned application:
tns create MyApp
cd MyApp
tns debug ios --watch // This will fail. To make it work you have to run `tns build ios` first
Additionally, this command is run by the VSCode extension when the Sync on iOS/Android
operation is triggered. In the extension we can "predict" whether the command will fail and trigger a build in such case, but this is a workaround. The real solution should be to trigger build in the CLI if the app hasn't been previously built. If triggering a build when --no-rebuild
is explicitly set looks strange to someone, we can at least trigger a build on tns debug ios --watch
. As a result the following scenario should not fail with error:
tns create MyApp
cd MyApp
tns debug ios --watch
Any ideas are welcome.