无法在设备上启动Xamarin.iOS应用 [英] Cannot launch Xamarin.iOS app on device

查看:90
本文介绍了无法在设备上启动Xamarin.iOS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin.iOS和MVVMcross开发iPad应用程序.因此,我有一个带有视图模型和模型的PCL,以及一个带有视图的iOS项目.我使用Visual Studio.

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.

之前,我使用Xamarin.iOS 6.3.6 beta版,当我尝试在设备上启动该应用程序时,创建了一个.app文件并将其与我的Ipad一起使用,我可以启动该应用程序(无法启动直接从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).

昨天,我将Xamarin.iOS上传到6.4.1.在模拟器上,一切正常.当我尝试在设备上启动应用程序时,现在已经直接安装了该应用程序,但是在调试输出中出现了构建停止和以下错误:

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?

推荐答案

这似乎是某些内容缓存在某个地方或未正确更新.

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

以下是一些可以尝试的想法:

Here are a few ideas to try:

  • 从设备上删除应用.
  • 清洁&重建您的应用.
  • 建立并建立从Mac上的Xamarin Studio安装.
  • 将Debug配置复制到新配置(例如,DebugTest),然后运行该配置.

这篇关于无法在设备上启动Xamarin.iOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆