Bug 36865 - VS should warn when user need to accept Xcode license
Summary: VS should warn when user need to accept Xcode license
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 4.3.0 (C9)
Assignee: Mikayla Hutchinson [MSFT]
Depends on:
Reported: 2015-12-11 00:32 UTC by Mikayla Hutchinson [MSFT]
Modified: 2016-09-28 14:57 UTC (History)
5 users (show)

Tags: papercut
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 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.

Related Links:

Description Mikayla Hutchinson [MSFT] 2015-12-11 00:32:15 UTC
When Xcode has been updated, but the user has not opened it and accepted the license, the build can fail in strange ways.

XMA should check whether the Xcode license needs to be accepted and offer to do it (this can be done via commandline).

See also https://bugzilla.xamarin.com/show_bug.cgi?id=35439
Comment 1 Daniel Cazzulino 2015-12-11 17:49:05 UTC
I just checked, and the command line needs to use sudo to successfully accept the license. We could ask the password when the user double-clicks an error in the task list maybe?

Also, there used to be an issue where you needed to run Xcode at least once to get the simulators populated, at which point the user would accept the license himself (and have a chance to actually read it ;)). So maybe by accepting the license for them, we aren't gaining much if right after we ask them to open Xcode anyway? Dunno.

Showing a proper error should be easy to implement. But I'm not sure what useful action we could take beyond that. Thoughts?
Comment 4 mag@xamarin.com 2016-08-23 18:45:01 UTC
Fixed on master branch, from commit: 2e4c44b2af644a2b52b92004aeb39ca7551831a5
Comment 5 Akhilesh kumar 2016-09-28 14:57:08 UTC
I have checked this issue with latest master XVS build and now this issue has been resolved same as mentioned in Comment 3.

If  Xcode license is not accepted on Mac and we try to connect VS with Mac Agent then we are getting messages in 'Connect to Mac' popup window as well as in output windows of VS. 

Screencast: http://www.screencast.com/t/W0vzma5Tl

So I am closing this issue.

Microsoft Visual Studio Enterprise 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise

Xamarin (4517cff)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (822917d)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS (1da975d)
Visual Studio extension to enable development for Xamarin.iOS.