[MonoTouch] MonoTouch crash on launch on device

Sebastien Pouliot sebastien at xamarin.com
Mon Dec 19 08:34:13 EST 2011


On Mon, Dec 19, 2011 at 8:27 AM, kpijnenburg <kpijnenburg at supportware.nl> wrote:
> Hi Sebastien,
>
> In response to your remark about the native libraries, i just chose "Link
> all assemblies" instead of the deafult SDK assemblies only.

It's a bit confusing since there are two linkers:

1. the managed one (which is the one you mention above);

2. the unmanaged linker (gcc's linker) which will link the final
MonoTouch application with any native libraries (the iOS frameworks
and any other static library that you added to your project).

> Now it runs on my device. Can you release an app with Link All Assemblies?
> Is this OK?

Release? Definitively! That's the setting that will result in the
smallest application size possible.

Note that it requires a bit more testing since the (managed) linker
could be removing stuff that your application is using indirectly
(e.g. using reflection). The "Link SDK assemblies only" (default)
won't touch your application code.

However since the "Link all assemblies" is a superset of "Link SDK
assemblies only" it should _not_ fix your build. Something else must
be different between the projects on your two macs.

Sebastien


More information about the MonoTouch mailing list