-
-
Notifications
You must be signed in to change notification settings - Fork 197
TNS 2.00 & Macintosh without Java/Android configured #1732
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
Comments
Hey @NathanaelA, I've just tried this on my Mac where ANDROID_HOME is not configured at all however all commands worked as expected. I'm using CLI 2.0.1. As far as I know |
This comment was marked as abuse.
This comment was marked as abuse.
No. I've tested this on Mac with no Java installed. |
This comment was marked as abuse.
This comment was marked as abuse.
I believe @vakrilov had faced the same issue, so we'll investigate it further. Not sure what's causing this behavior. |
I confirm. On a Mac with no Java -> I get the popup every time i build. |
Ok. We've found what's causing the problem. This code was intended initially to be called only from |
This is a annoying regression in the CLI on macs.
TNS run ios, tns debug ios, tns deploy ios, tns emulate ios, and tns prepare ios
See the commonality. ;-)
I do all my Android development on my PC, and so my mac is not configured for even java or Android.
Now when ever a plugin is updated, installed or manually changed the TNS command will now spit out the following:
The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
To be able to perform Android build-related operations, set the ANDROID_HOME variable to point to the root of your Android SDK installation directory.
Ok, so that is just annoyingly pointless verbage since I asked for a iOS build. But the real regression is that it checks the Java version. Does anyone remember what happens when you don't have Java installed on a Mac osx box. You get one of these:

Do you have ANY idea how frustrating that is to have popup frequently... Argh....
The text was updated successfully, but these errors were encountered: