Bug 5941 - Exception after deleting Xcode
Summary: Exception after deleting Xcode
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2012-07-01 12:32 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-03-15 18:06 UTC (History)
1 user (show)

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

Related Links:

Description Mikayla Hutchinson [MSFT] 2012-07-01 12:32:10 UTC
After I deleted the Xcode app bundle that MD was set to use, MD threw the following exception.

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.IPhone.AppleIPhoneSdk+<GetSimulatorTargets>c__IteratorA.MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator27`2[MonoDevelop.IPhone.IPhoneSimulatorTarget,MonoDevelop.Core.Execution.IExecutionMode].MoveNext () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GetDataContext () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService+<GetCustomModes>c__Iterator11.MoveNext () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Execution.CustomExecutionMode].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Execution.CustomExecutionMode]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GetExecutionModeCommands (MonoDevelop.Ide.Execution.CommandExecutionContext ctx, Boolean includeDefault, Boolean includeDefaultCustomizer) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GenerateExecutionModeCommands (MonoDevelop.Projects.SolutionEntityItem project, MonoDevelop.Ide.Execution.CanExecuteDelegate runCheckDelegate, MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Commands.RunEntryWithHandler.Update (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x00000] in <filename unknown>:0
Comment 1 Jeffrey Stedfast 2013-03-15 18:06:13 UTC
fixed in git master