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

Working around Linker problems in MvvmCross

Working around Linker problems in MvvmCross

Stuart Lodge

May 14, 2013
Tweet

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