3

OS X (10.7.2) に MonoDevelop 3.0 をクリーン インストールしてから、MonoMacの Git チェックアウトを行いました。MonoMac リポジトリに含まれているサンプルをビルドできません。ビルドが成功したという出力が表示されるたびに、同じエラーが表示されます。

Build failed. Object reference not set to an instance of an object

完全なサンプル ビルド出力:

Cleaning Solution: Fire (Debug)

Cleaning: Fire (Debug)
Removing output files...
Clean complete

Building Solution: Fire (Debug)

Building: Fire (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.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 "/define:DEBUG"  /t:exe "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainWindow.cs" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainWindowController.cs" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainWindow.xib.designer.cs" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/Main.cs" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/AppDelegate.cs" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainMenu.xib.designer.cs" 

Compiling interface definitions
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/Resources/MainWindow.nib" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainWindow.xib"
/* com.apple.ibtool.document.warnings */
/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/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/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/Resources/MainMenu.nib" "/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/MainMenu.xib"

Copying content files
Copying '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.exe' to '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/MonoBundle/Fire.exe'
Copying '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.exe.mdb' to '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/MonoBundle/Fire.exe.mdb'
Copying '/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll' to '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/MonoBundle/MonoMac.dll'
Copying '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/fire.png' to '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/Resources/fire.png'
Copying '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/smoke.png' to '/Users/dave/Dropbox/Code/MonoMac/monomac/samples/Fire/bin/Debug/Fire.app/Contents/Resources/smoke.png'
Build complete -- 0 errors, 0 warnings

Updating application manifest

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

Build successful.
Build failed. Object reference not set to an instance of an object

ここで何が間違っていますか?

4

2 に答える 2

3

これは既知の問題です。問題は、MonoDevelopがシステム上でMacOSX SDKを見つけられないことです(おそらく、4.3より古いバージョンのXcodeを使用していますか?)。

私はMonoDevelop3.0.2のこの修正に取り組んでいます

于 2012-05-17T15:57:29.847 に答える
1

私にとっては、IDE が識別できなかった Info.plist ファイルに競合があったという事実が問題でした。競合を解決して再構築する必要がありました。

于 2012-12-19T20:42:29.247 に答える