Cannot launch Xamarin.iOS app on device

axvo picture axvo · Aug 1, 2013 · Viewed 16.7k times · Source

I am developing an iPad application with Xamarin.iOS and MVVMcross. So I have a PCL with my View-Model and my Model, and an iOS project with the view. I use Visual Studio.

Before, I used Xamarin.iOS 6.3.6 beta version, and when I tried to launch the app on the device, an .app file was created and getting it with my Ipad, I could launch the application (impossible to launch directly from Visual Studio).

Yesterday, I uploaded Xamarin.iOS to 6.4.1. On simulator, everything's okay. When I try to launch the application on device, now the app is directly installed but the build stop and the following error appear in the debug output :

Failed to load AOT module '<my PCL>' while running in aot-only mode: doesn't match assembly. 

And if I click on my app icon on the device,a black screen appear and disappear immediately.

Does someone know why this error appear?

Answer

Rolf Bjarne Kvinge picture Rolf Bjarne Kvinge · Aug 1, 2013

This looks like something was cached somewhere or not updated correctly.

Here are a few ideas to try:

  • Delete the app from the device.
  • Clean & Rebuild your app.
  • Build & install from Xamarin Studio on your Mac.
  • Copy the Debug configuration to a new configuration (DebugTest for instance), and run that configuration instead.