gpt4 book ai didi

mono - 无法在 OS X 中的 MonoDevelop 3.0 上构建任何 MonoMac 示例

转载 作者:行者123 更新时间:2023-12-05 01:32:36 28 4
gpt4 key购买 nike

我刚刚在 OS X (10.7.2) 中全新安装了 MonoDevelop 3.0,然后对 MonoMac 进行了 Git check out 。 .我无法构建 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

我在这里做错了什么?

最佳答案

这是一个已知问题。问题是 MonoDevelop 在您的系统上找不到 MacOSX sdk(可能您使用的 Xcode 版本早于 4.3?)。

我正在为 MonoDevelop 3.0.2 修复这个问题

关于mono - 无法在 OS X 中的 MonoDevelop 3.0 上构建任何 MonoMac 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10607254/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com