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:

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

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: 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.