Hi Gerry,

Yes, that would make sense. The MonoTouch build tool inspects which
MonoTouch.* namespaces are used and decides which frameworks to pull in
based on that. It looks like this approach may be flawed, however.

Could you file a bug on http://bugzilla.xamarin.com about this so that it
can be tracked?

Thanks!

Jeff

On Thu, Jan 26, 2012 at 10:16 PM, Gerry High <[email protected]> wrote:

> Spent an hour on this till I realized what the issue was.  If you drop a
> mapview onto a View but do not wire it up to an instance variable you'll
> get a lovely runtime error when you deploy to a device:
>
> *exception 'NSInvalidUnarchiveOperationException', reason: 'Could not
> instantiate class named MKMapView'*
>
> I'm guessing that Mono doesn't realize it is in the NIB and thus doesn't
> link in the map kit library.
>
> Gerry
>
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to