[Mono-osx] MonoMac Packaging fails

Yvan Janssens yvan at yvansoftware.be
Fri Apr 15 11:49:01 EDT 2011


Hi,

I'm trying to package an app which used to package correctly, but now "gcc
exits with code 1".

Here's the build output (standard settings):


*Creating app bundle*
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Contents/Resources/Preferences.nib
Contents/Resources/iproxify.icns

*Merging Mono into app bundle*
mmp -o "/tmp/monomac-build-634384853555305180" -n "iProxify" -a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll"
-a
"/Users/robinbyte/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.2/MonoMac.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Web.dll"
"/users/robinbyte/Desktop/iProxify/iProxify/bin/Debug/iProxify.exe"
Process exited with code 1, command:
gcc -mmacosx-version-min=10.5 -m32
/tmp/monomac-build-634384853555305180/iProxify.app/Contents/MacOS/driver.m
-o
/tmp/monomac-build-634384853555305180/iProxify.app/Contents/MacOS/iProxify
-D_THREAD_SAFE
-I/Library/Frameworks/Mono.framework/Versions/2.10.1/include/mono-2.0
/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/libmono-2.0.a
-framework AppKit -liconv

*Signing app bundle*
codesign -v -f -s "3rd Party Mac Developer Application: Yvan JANSSENS"
"/tmp/monomac-build-634384853555305180/iProxify.app"
/tmp/monomac-build-634384853555305180/iProxify.app: object file format
invalid or unsuitable
/tmp/monomac-build-634384853555305180/iProxify.app: object file format
invalid or unsuitable


*Signing failed*

If I try to link the frameworks, I get the following output:


*Creating app bundle*
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Contents/Resources/Preferences.nib
Contents/Resources/iproxify.icns

*Merging Mono into app bundle*
mmp --linksdkonly -o "/tmp/monomac-build-634384863830607200" -n "iProxify"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll"
-a
"/Users/robinbyte/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll"
-a
"/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Web.dll"
"/users/robinbyte/Desktop/iProxify/iProxify/bin/Debug/iProxify.exe"

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0


*Merging Mono failed*


I'm runnng 10.6.6 Snow Leopard, and latest 2.4.2 MonoDevelop, and
Application tools 1.1/Xcode 3.2.5 . I manually updated monomac from source.
Do you guys have any clue where to search?

Thanks,

Yvan
-- 
Never be afraid to try something new. Remember amateurs built the ark -
Professionals built the Titanic.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110415/e6594749/attachment-0001.html 


More information about the Mono-osx mailing list