Zac Gross

Code & More

Migrating Existing Xamarin iOS App to Unified API

| Comments

Recently I had to migrate an existing Xamarin iOS app to the unified API. The following are solutions to a few of the problems I encountered.

After running the automated update command from the Xamarin Studio OSX build menu I encountered the following error on subsequent builds:

1
2
The type MonoTouch.UIKit.UIViewController' is defined in an assembly that is not 
referenced. Consider adding a reference to assemblymonotouch, Version=0.0.0.0,

If you get a similar error it will probably be necessary to:

  1. Clean the solution.
  2. Reinstall all components.
  3. Rebuild.

    If the issue still persists (like in my case) and you are using Xamarin Studio you may have to manually delete the old component package files from your file system then reinstall them after you are sure they have been wiped. Xamarin studio can store them in multiple locations depending on platform be sure to check: https://kb.xamarin.com/customer/portal/articles/1865772-where-are-the-components-stored-on-my-machine- to find the location on your machine.

One other thing to note is the compiled binary size of your app will probably double because the resulting package now contains both 32 and 64 bit versions.

Comments