MvvmCross Monotouch - Unable to bind properties on a real iPad, but it works on Simulator

I work with MvvmCross Monotouch.

Here is a binding code that actually works very well on an iOS simulator.

{ this, "{'Title':{'Path':'NavigationBarTitle'}} 

However, it does not work when I deploy it on my real iPad (iPad 2).

 Application Output: =================== MvxBind: Warning: 0.69 Failed to create target binding for from NavigationBarTitle to Title 

I am glad to see that this works on iOS Simulator, but is there any reason why it does not work on a real iPad?

Patrick

+2
source share
1 answer

One of the situations in which I saw an error of this type is in release versions, where the monotouch linker optimizes the image size and removes the obviously unused property needed for binding.

To get around this, I usually include a fake bit of code to trick the linker by including the necessary properties - for example. Here is an example monodroid file that does the same:

https://github.com/slodge/MvvmCross/blob/master/Sample%20-%20BestSellers/BestSellers/BestSellers.Droid/LinkerIncludePlease.cs

This is one of the drawbacks of using mvvmcross at present - it can lead to larger binary images.

+7
source

All Articles