Bug 5227 - Build failed. Object reference not set to an instance of an object
Summary: Build failed. Object reference not set to an instance of an object
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-05-22 00:50 UTC by saburo_okita
Modified: 2012-05-22 10:05 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED FIXED

Description saburo_okita 2012-05-22 00:50:07 UTC
After updating MonoDevelop to version 3.0, I am unable to build any of the sample projects given by http://www.mono-project.com/MonoMac#Samples.

All of those projects output the same error: 
Build failed. Object reference not set to an instance of an object

Building: GLFullScreen (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" "/r:/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 -unsafe "/define:DEBUG"  /t:exe "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainWindow.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainWindowController.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainWindow.xib.designer.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Main.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/AppDelegate.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainMenu.xib.designer.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MyOpenGLView.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Scene.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Texture.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Geometry.cs" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Shapes/Sphere.cs" 

Compiling interface definitions
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/Resources/MainWindow.nib" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainWindow.xib"
/* com.apple.ibtool.document.warnings */
/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainWindow.xib:2: warning: Content rectangle not entirely on screen with the menu bar (May not be completely visible for all screen resolutions and configurations) [9]
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/Resources/MainMenu.nib" "/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/MainMenu.xib"

Copying content files
Copying '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.exe' to '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/MonoBundle/GLFullScreen.exe'
Copying '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.exe.mdb' to '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/MonoBundle/GLFullScreen.exe.mdb'
Copying '/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll' to '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/MonoBundle/MonoMac.dll'
Copying '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/Earth.jpg' to '/Users/sub/Downloads/mono-monomac-3ef5983/samples/GLFullScreen/bin/Debug/GLFullScreen.app/Contents/Resources/Earth.jpg'
Build complete -- 0 errors, 0 warnings

Updating application manifest

---------------------- Done ----------------------

Build successful.
Build failed. Object reference not set to an instance of an object
Comment 1 Jeffrey Stedfast 2012-05-22 10:05:30 UTC
already fixed in an upcoming MonoDevelop 3.0.2 release

in the meantime, feel free to use http://files.xamarin.com/~jeff/MonoDevelop-3.0.1js3.dmg