I have developed Mono (.NET) application in Mac OS X and it runs from MonoDevelop just fine. Although, it fails with error when I run from command line like this:
mono SqlDynamiteX.exe
Instead, I have to run the application like this:
export DYLD_FALLBACK_LIBRARY_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib:$DYLD_FALLBACK_LIBRARY_PATH:/usr/lib"
exec /Library/Frameworks/Mono.framework/Versions/Current/bin/mono ./SqlDynamiteX.exe
Then, I have made a Mac OS X app this way:
macpack -n:SqlDynamiteX -o:. -a:SqlDynamiteX.exe -i:WindowIcon.icns -m:winforms -r:SqlDynamite.Common.dll,SqlDynamite.Util.dll,Npgsql.dll,MySql.Data.dll
And I have edited Info.plist file inside package according to this post:
Setting environment variables in OS X?
<key>LSEnvironment</key>
<dict>
<key>DYLD_FALLBACK_LIBRARY_PATH</key>
<string>/Library/Frameworks/Mono.framework/Versions/Current/lib:$DYLD_FALLBACK_LIBRARY_PATH:/usr/lib</string>
</dict>
But the application still fails with error when I double-click it in Finder.
Could anyone help me with that issue?