Working around Linker problems in MvvmCross

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Working around Linker problems in MvvmCross

Stuart Lodge

May 14, 2013

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

5 slides
  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

More Decks by Stuart Lodge

Other Decks in Technology