3

我正在使用 MonoDevelop 2.8.8.4 和 MonoFramework (MDK) 2.10.9_8。我也在使用 Mac OSX Lion 10.7.3 并为 Lion SDK 安装了 XCode 4.3.1。使用 MonoDevelop 进行调试时,我的 MonoMac 应用程序运行良好。然后我尝试通过转到项目-> 创建 Mac 安装程序来创建应用程序包...

选中“在应用程序包中包含 Mono”

链接器:设置为“不链接程序集”

其他所有内容都未选中并显示为灰色。

当我点击“创建包”然后“保存”时,MonoDevelop 开始创建包,但随后失败:

Unhandled Exception: System.ComponentModel.Win32Exception: ApplicationName='gcc', CommandLine='-mmacosx-version-min=10.5 -m32 /tmp/monomac-build-634690657739224650/AboutToBlowUpDemo.app/Contents/MacOS/driver.m -o /tmp/monomac-build-634690657739224650/AboutToBlowUpDemo.app/Contents/MacOS/AboutToBlowUpDemo -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0   /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/libmono-2.0.a -framework AppKit -liconv', CurrentDirectory=''  
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0   
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0   
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.RunCommand (System.String path, System.String args, System.String[] env, System.String& output) [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.Compile () [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0   

[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: ApplicationName='gcc', CommandLine='-mmacosx-version-min=10.5 -m32 /tmp/monomac-build-634690657739224650/AboutToBlowUpDemo.app/Contents/MacOS/driver.m -o /tmp/monomac-build-634690657739224650/AboutToBlowUpDemo.app/Contents/MacOS/AboutToBlowUpDemo -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0   /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/libmono-2.0.a -framework AppKit -liconv', CurrentDirectory=''  
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0   
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0   
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.RunCommand (System.String path, System.String args, System.String[] env, System.String& output) [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.Compile () [0x00000] in <filename unknown>:0   
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0   

mmp 以代码 1 退出

合并 Mono 失败

我还在“创建 Mac 安装程序...”窗口中尝试了所有其他组合,但我总是遇到同样的错误。谁能告诉我我做错了什么?

4

1 回答 1

4

您需要安装 gcc。您可以通过在 Xcode 中安装命令行工具来执行此操作,如此所述。

于 2012-04-04T11:27:11.027 回答