Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
There is a postinstall step in the .pkg installer for macOS that invokes "javac -version" for the (seemingly) sole purpose of bringing up the built-in macOS UI to prompt a user to install Java, since macOS no longer (and hasn't in a very long time) ships Java out of the box.
The postinstall script in Xamarin.Android however does not handle the exit code of the javac invocation, causing it to propagate up to the installer process itself.
Thus, installing Xamarin.Android on a macOS system without Java previously installed results in the Xamarin.Android installer failing.
Based on the comments in the postinstall.in file in Xamarin.Android, `javac -version` returning non-zero might actually be a new behavior in High Sierra.
I never realized that a shell script would return the exit code of the last command executed. Hm...
Also, as Comment #1 mentions, the intent was to use `javac -version`.
Fix in: https://github.com/xamarin/monodroid/pull/640
PR here: https://github.com/xamarin/monodroid/pull/641
Fixed in monodroid/2e31620c.
Fixed in monodroid/d15-4/880daec4.
This bug is verified on d15_4 Branch build having following config:
-Visual Studio Community 2017 for Mac (Preview) Version 7.2 Preview (7.2 build 446)
-Xamarin.iOS Version: 10.14.0.4
-Xamarin.Android Version: 188.8.131.52
-Xamarin.Mac Version: 184.108.40.206
Detailed Build Config: https://gist.github.com/mohakbarokar/418919d3b553dfb691ded2ed16a6f4b4
The bug is found to be fixed. Hence marking the bug as Verified Fixed.
Screencast Link: https://www.screencast.com/t/YbBkAC33tSkm