Bug 11277 - NRE when opening an iOS project that is set for AppStore or Release mode.
Summary: NRE when opening an iOS project that is set for AppStore or Release mode.
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2013-03-19 21:14 UTC by TotallyEvil Devs
Modified: 2013-03-21 17: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 TotallyEvil Devs 2013-03-19 21:14:54 UTC
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.IPhone.IPhoneProject.GetBundleResourceId (MonoDevelop.Projects.ProjectFile pf) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:753 
  at MonoDevelop.IPhone.PlistEditor.IPhonePlistAttachableDisplayBinding.CanHandle (MonoDevelop.Projects.Project project, MonoDevelop.Projects.ProjectFile pf) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PlistEditor/IPhonePlistAttachableDisplayBinding.cs:42 
  at MonoDevelop.MacDev.PlistEditor.PlistEditorAttachableDisplayBindingBase.CanAttachTo (IViewContent content) [0x0002f] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/PlistEditor/PlistEditorAttachableDisplayBindingBase.cs:50 
  at MonoDevelop.Ide.Gui.DisplayBindingService.AttachSubWindows (IWorkbenchWindow workbenchWindow, IViewDisplayBinding binding) [0x0003b] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DisplayBindingService.cs:84 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x001f6] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1204 
  at MonoDevelop.Ide.Gui.Workbench.RealOpenFile (IProgressMonitor monitor, MonoDevelop.Ide.Gui.FileOpenInformation openFileInfo) [0x00260] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:831
Comment 1 TotallyEvil Devs 2013-03-19 21:16:16 UTC
This is pre Xamarin.iOS 6.2.1 which is installing right now.
Comment 2 TotallyEvil Devs 2013-03-19 21:57:40 UTC
post 6.2.1 update, same error.
Comment 3 Jeffrey Stedfast 2013-03-20 07:12:28 UTC
The bug looks like it's actually because you have a plist document opened, and not anything to do with App Store or Release configuration.

I'll try to look into this today.
Comment 4 Jeffrey Stedfast 2013-03-20 10:15:08 UTC
Okay, so the problem is that you are trying to open a plist document that is not in your project.

I've fixed this to not throw an NRE in git master, so a fix should be in 4.0.4 (if not sooner)
Comment 5 TotallyEvil Devs 2013-03-21 17:06:57 UTC
yet, the plist is in the project, but it is as a LINK to info.iOS.plist:

    <None Include="Info.iOS.plist">