[MonoTouch] Is default linker behavior in MonoDevelop/MonoTouch 1.2 now --nolink?

Ed Anuff ed at anuff.com
Wed Oct 28 17:28:42 EDT 2009


Ok, just to be clear, since this has been an issue affecting my
particular project:

--nolink is now the MonoDevelop default for building for the simulator
and is labeled "Don't Link" in the MonoDevelop iPhone Build Options.
Since I previously in my project had to specify --nolink to get my app
to run in the simulator, I should now be using "Don't Link".

--linksdkonly is now the MonoDevelop default for building for the
device and is labelled "Link SDK Assemblies Only" in the MonoDevelop
iPhone Build Options.  If my app doesn't work in the device with this
setting but it works on the simulator with "Don't Link" then that
probably means I should file a jira bug report.

The previous MonoDevelop default (and still the command line default
for mtouch) of no special link behavior now must be explicitly chosen
and is called "Link All Assemblies" in the MonoDevelop iPhone Build
Options.  Is there any time when we should choose "Link All
Assemblies"?  Or is this no longer recommended?

Ed

On Wed, Oct 28, 2009 at 2:08 PM, Michael Hutchinson
<m.j.hutchinson at gmail.com> wrote:
> On Wed, Oct 28, 2009 at 2:33 PM, Ed Anuff <ed at anuff.com> wrote:
>> What are the new Linker Behavior options?  The default appears to now
>> be "Don't Link".  Is this the equivelent of the --nolink option and is
>> that now the default recommended setting for the linker?  I thought
>> that was only the recommendation to avoid certain bugs or is the idea
>> to now start with that and then only go to "Link all assemblies" when
>> the project appears to be otherwise working?
>
> The default is "don't link" for simulator, to improve the build time
> for simulator.
>
> For device, it defaults to "link sdk only" to make things easier, so
> that you don't have to worry about [Preserve] etc on your own code.
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
>


More information about the MonoTouch mailing list