2

我正在尝试使用 MonoDevelop 3.0.3.2 创建 MonoMac 应用程序。我创建了一个新的 MonoMac 解决方案并尝试运行创建解决方案后创建的模板,但这是我的构建输出:

Building Solution: MAC1 (Debug|x86)

Building: MAC1 (Debug|x86)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig
"/out:/Users/zgillis/Projects/MAC1/bin/Debug/MAC1.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 /platform:x86     
"/define:DEBUG"  /t:exe "/Users/zgillis/Projects/MAC1/MainWindow.cs"
 "/Users/zgillis/Projects/MAC1/MainWindowController.cs" 
"/Users/zgillis/Projects/MAC1/MainWindow.designer.cs" 
"/Users/zgillis/Projects/MAC1/Main.cs" "/Users/zgillis/Projects/MAC1/AppDelegate.cs" 
"/Users/zgillis/Projects/MAC1/AppDelegate.designer.cs" 

Copying content files
Copying '/Users/zgillis/Projects/MAC1/bin/Debug/MAC1.exe' to
'/Users/zgillis/Projects/MAC1/bin/Debug/MAC1.app/Contents/MonoBundle/MAC1.exe'
Copying '/Users/zgillis/Projects/MAC1/bin/Debug/MAC1.exe.mdb' to 
'/Users/zgillis/Projects/MAC1/bin/Debug/MAC1.app/Contents/MonoBundle/MAC1.exe.mdb'
Build complete -- 0 errors, 0 warnings

Updating application manifest

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

Build successful.
Build failed. The given key was not present in the dictionary.

我正在运行 Mac OS X Snow Leopard (10.6.8),我的 Xcode 版本是 3.2.2。

它甚至不允许我编译默认的 MonoMac 模板,所以我知道我必须有一些配置不正确。我很感激帮助。

4

1 回答 1

1

看起来您的 Xcode 版本很旧 - MonoDevelop 对从较旧的 Apple SDK 的 plist 中读取值的支持可能已经倒退。我建议您升级 Xcode,或者使用附加的 MonoDevelop 日志文件(在 ~/Library/Logs/MonoDevelop-3.0 中找到)提交错误。

于 2012-07-10T19:00:45.890 回答