Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Working around Linker problems in MvvmCross

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Working around Linker problems in MvvmCross

Avatar for Stuart Lodge

Stuart Lodge

May 14, 2013

More Decks by Stuart Lodge

Other Decks in Technology

Transcript

  1. Data-Binding Uses Reflection Views In your App MvvmCross Data-Binding Android

    Views/Widgets or CocoaTouch UIViews CreateBinding .For(view => view.Text) .To(vm => vm.Name) UITextField::Text UITextField
  2. Android Views/Widgets or CocoaTouch UIViews Linker Removes ‘Unused’ Symbols Views

    In your App MvvmCross Data-Binding CreateBinding .For(view => view.Text) .To(vm => vm.Name) NullReference  UITextField
  3. Solutions… • Turn off Linking • Add fake references: LinkerIncludePlease.cs

    • Linker Parameters: --linkskip=ASSEMBLY • Preserve: [Preserve] --xml=file