无法自动处理程序集System.ComponentModel.DataAnnotations.dll [英] Could not AOT the assembly System.ComponentModel.DataAnnotations.dll
问题描述
我已将Xamarin更新为最新版本(Visual Studio上的版本4.3,XCode 8.2.1(8C1002)和Mac上的Xamarin已更新). 两天前(更新之前),我能够在设备(iOS 10.2)上进行测试.现在,我只能在模拟器上进行测试.在设备上进行测试时,出现以下错误:
I have updated Xamarin to the latest version (version 4.3 on Visual studio, XCode 8.2.1 (8C1002) and Xamarin on Mac is updated). Two days ago (before the update), I was able to test on device (iOS 10.2). Now I can test only on simulator. When I test on device I get the following error:
Could not AOT the assembly
'/Users/daniel/Library/Caches/Xamarin/mtbs/builds/MyApp.Forms.iOS/1af4f6c4fd45446e99d1f7cc7969a4fd/obj/iPhone/Debug/mtouch-cache/64/Build/System.ComponentModel.DataAnnotations.dll'
MyApp.Forms.iOS
我卸载了Xamarin.删除了所有文件,然后重新安装,并且出现相同的错误.
I uninstalled Xamarin. Deleted all the files and install again and I have the same error.
重要提示:已禁用增量构建
我是唯一一个出现此错误的人吗?有谁知道如何解决这个问题?
Am I the only one to have this error? Does anyone know how to solve this?
谢谢!
推荐答案
我设法通过在PC和Mac上重新安装旧版本(2017年1月27日)来解决此问题.
I managed to solve this by reinstalling an older version (27 Jan 2017) on both my pc and mac.
我使用提供的脚本在Mac上卸载Xamarin .您可能需要sudo chmod 755 yourFile
才能启动脚本.
I uninstall Xamarin on my mac with the provided script. You might need to sudo chmod 755 yourFile
before launching the script.
在我的电脑上,我从工具>扩展和更新(搜索xamarin并卸载)中删除了Xamarin.
On my pc, I removed Xamarin from Tools > Extensions and Updates (search xamarin and uninstall).
然后,您可以使用旧设置开始新的安装.出于我的担忧,我登录了Xamarin.com,并在仪表板上可以下载Xamarin的早期版本(截至2017年1月27日).
Then you can start a new installation with the old setups. For my concerns, I logged in Xamarin.com and in my dashboard, I could download the previous version of Xamarin (as of 27 Jan 2017).
现在可以正常使用了:)
Now it work fine :)
这篇关于无法自动处理程序集System.ComponentModel.DataAnnotations.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!