Bug 11572 - dylibs from included mono runtime fails to load other dylib
Summary: dylibs from included mono runtime fails to load other dylib
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.2.x
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-04-04 04:10 UTC by Claus Joergensen
Modified: 2013-05-21 15:51 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Claus Joergensen 2013-04-04 04:10:53 UTC

Xamarin.mac application (just upgraded from MonoMac) with "Include mono runtime in application bundle" loads dylibs referencing other dylibs from /Library/Frameworks/Mono.framework/Versions/2.10.12/lib causing the application to crash on Mac without the Mono framework installed.

Steps to reproduce:

Xamarin.Mac app with "Include mono runtime in application bundle" enabled. I am not sure if the use of using System.Drawing is somehow involved. 

Actual result:

application crashes due to missing mono framework installation, final two lines from running the app with MONO_LOG_LEVEL=DEBUG:

Error loading libglib: dlopen(/Applications/SQAT.app/Contents/MonoBundle/libglib-2.0.0.dylib, 0): Library not loaded: /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/libintl.8.dylib
  Referenced from: /Applications/SQAT.app/Contents/MonoBundle/libglib-2.0.0.dylib
  Reason: image not found

Expected result:

The app should have loaded the libintl.8.dylib from the MonoBundle inside the app. The libintl.8.dylib is actually present in the MonoBundle folder, but it doesn't seem to be loaded.

Version info:
=== Xamarin Studio ===

Version 4.0.3 (build 13)
Installation UUID: 6fe29d2f-40c5-4b1c-a5af-9728e3090c65
	Mono 2.10.12 (mono-2-10/c9b270d)
	GTK 2.24.16
	GTK# (

=== Apple Developer Tools ===

Xcode 4.5.2 (1847)
Build 4G2008a

=== Xamarin.iOS ===

Version: (Starter Edition)
Hash: ed9807c
Build date: 2013-19-03 13:42:59-0400

=== Xamarin.Mac ===

Xamarin.Mac: 1.2.43

=== Xamarin.Android ===

Not Installed

=== Build Information ===

Release ID: 400030013
Git revision: fae7c2bde0e8d51943fbd6afa22d7d2bb7a1192f
Build date: 2013-03-21 19:16:39+0000
Xamarin addins: 906a1edff23bcfd0ab7518463620a8ee506eaea2

=== Operating System ===

Mac OS X 10.7.5
Darwin triforks-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2
    Thu Aug 23 16:25:48 PDT 2012
    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2013-05-21 15:51:15 UTC
This is fixed in the upcoming 1.4 release.