Resolving error message when merging MonoMac runtime into app bundle

Currently working on my first MonoMac application I got the following long error message during app bundle merging:

Merging Mono Runtime into app bundle

/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/mmp „-minos=10.6“ -o „/Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release“ -n „ZetaUploaderMonoMac“ -a „/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll“ -a „/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll“ -a „/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll“ -a „/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll“ -a „/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll“ -a „/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll“ „/Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release/ZetaUploaderMonoMac.exe“

 

Unhandled Exception: System.ComponentModel.Win32Exception: ApplicationName=’gcc‘, CommandLine=‘-mmacosx-version-min=10.6 -m32 /Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release/ZetaUploaderMonoMac.app/Contents/MacOS/driver.m -o /Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release/ZetaUploaderMonoMac.app/Contents/MacOS/ZetaUploaderMonoMac -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.6 -m32 /Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release/ZetaUploaderMonoMac.app/Contents/MacOS/driver.m -o /Users/uwe/Dropbox/Beruf/Projekte/Programmierung/ZetaUploaderMac/MonoMac/Source/ZetaUploaderMonoMac/bin/Release/ZetaUploaderMonoMac.app/Contents/MacOS/ZetaUploaderMonoMac -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 exited with code 1

After searching through Google I found the Stack Overflow article „MonoMac Create Mac Installer results in Merging Mono Failed. FATAL UNHANDLED EXCEPTION“ which has an answer stating that the gcc tool is not installed. He also points to to another Stack Overflow answer telling how to do it.

Basically, use Xcode to download install gcc.

On my system, this actually resolved the issue.

Ankommende Suchanfragen:

  • awk group vorstellungsgespräch

Adding Outlets for MonoTouch with Apple Xcode 4

Searching over and over again, I found no way of generating those „outlets“ in Xcode 4’s new Interface Builder in conjunction with MonoTouch.

Right before getting nuts, I found this document that has the solution to it:

Transitioning from Xcode 3 to Xcode 4
A guide for MonoTouch users

The chapter named „Adding Outlets and Actions“ contains the solution to it. Basically you have to:

  1. Select a control (e.g. a button) in the designer
  2. Hold down the Control key on the keyboard
  3. Drag the control from the designer into the source corresponding code right below the @interface definition

Then, after saving the file in Xcode 4, MonoTouch shows the new outlets as properties in the .designer file.

Update 2011-10-07:

There is also a new documentation regarding the Transition from Xamarin.