我刚升级到Xamarin studio 5.9(build 431),不能再运行我的项目了.它适用于一个干净的项目.
当我运行我的应用程序时,我甚至没有登陆Main.
Xamarin工作室中的应用程序输出打印了一堆装配.它到达MobileClientiOS.app/Newtonsoft.Json.dll [External]
,然后崩溃与以下输出:
无法加载文件或程序集"System.Threading.Tasks"或其依赖项之一.该系统找不到指定的文件.(System.IO.FileNotFoundException)在System.AppDomain.Load(System.Reflection.AssemblyName assemblyRef,System.Security.Policy.Evidence assemblySecurity)[0x00081]在... /单声道/ MCS /类/ corlib /系统/应用程序域. cs:706中的System.AppDomain.Load(System.Reflection.AssemblyName assemblyRef)[0x00000]位于.../mono/mcs/class/corlib/System/AppDomain.cs:674 at System.Reflection.Assembly.Load(System .Reflection.AssemblyName assemblyRef)[0x00000]在... /单声道/ MCS /类/ corlib /的System.Reflection/Assembly.cs:551在ObjCRuntime.Runtime.CollectReferencedAssemblies(System.Collections.Generic.List 1个组件,系统. Reflection.Assembly组件)[0x00019]在.../maccore/SRC/ObjCRuntime/Runtime.cs:在ObjCRuntime.Runtime.CollectReferencedAssemblies(System.Collections.Generic.List 1个组件,System.Reflection.Assembly组件)218 [0x0002c ]在.../maccore/src/ObjCRuntime/Runtime.cs:220 at ObjCRuntime.Runtime.CollectReferencedAssemblies(System.Collections.Generic.List 1 assemblies,System.Reflection).Assembly组件)[0x0002c]在.../maccore/SRC/ObjCRuntime/Runtime.cs:220在ObjCRuntime.Runtime.RegisterEntryAssembly(System.Reflection.Assembly entry_assembly)[0x0001b]在.../maccore/SRC/ObjCRuntime /Runtime.cs:200在ObjCRuntime.Runtime.RegisterEntryAssembly(IntPtr的一个)[0x00000]在.../maccore/SRC/ObjCRuntime/Runtime.cs:158在ObjCRuntime.Runtime.register_entry_assembly(IntPtr的组件)[0x00000]英寸../maccore/runtime/Delegates.generated.cs:118 at(wrapper native-to-managed)ObjCRuntime.Runtime:register_entry_assembly(intptr)2015-05-04
MobileClientiOS [77830:1943120] critical:执行本机代码时获得SIGABRT.这通常表示单声道运行时或应用程序使用的本机库之一出现致命错误.
很抱歉长堆栈跟踪,但我没有想法.我们正在使用PCL,但在此Xamarin Studio升级之前没有出现过问题.
谢谢!
编辑:我降级了Xamarin.iOS并重新开始工作.它似乎失败的程序集(现在适用于旧版本):
/MobileClientiOS.app/System.Xml.Linq.dll [外部]
如何能够运行最新版本?我不知道.
Bre*_*ski 17
为了猜测,我认为这可能与Xamarin Bug 29211具有相同的根本原因.
如果这是真的,那么同样的解决方法很有可能会起作用:
在"项目选项 - > iOS构建 - >其他mtouch参数"下添加:
-linkskip = System.Threading.Tasks
如果该解决方法确实有效,那么很可能该问题将在即将发布的服务版本中修复(将于本周晚些时候发布).
事实证明,问题的另一个微妙不同的常见原因System.Threading.Tasks
.第二个bug最初是由Bug 29211隐藏的,因为这两个bug非常相似.第二个问题现在正在Xamarin Bug 31560中进行跟踪.请注意,此错误仅影响模拟器构建,并且具有相当简单的解决方法,因此其严重性较小.
归档时间: |
|
查看次数: |
3764 次 |
最近记录: |