Xamarin iOS-无法加载文件或程序集';System.Threading.Tasks';启动时
我刚刚升级到Xamarin studio 5.9(build 431),无法再运行我的项目。不过,它适用于一个干净的项目 当我运行我的应用程序时,我甚至不会在主应用程序中着陆 Xamarin studio中的应用程序输出打印一组程序集加载。它到达Xamarin iOS-无法加载文件或程序集';System.Threading.Tasks';启动时,xamarin,Xamarin,我刚刚升级到Xamarin studio 5.9(build 431),无法再运行我的项目。不过,它适用于一个干净的项目 当我运行我的应用程序时,我甚至不会在主应用程序中着陆 Xamarin studio中的应用程序输出打印一组程序集加载。它到达MobileClientiOS.app/Newtonsoft.Json.dll[外部],然后它会崩溃,并出现以下输出: 无法加载文件或程序集“System.Threading.Tasks”或其 依赖关系。系统找不到指定的文件。 (System.IO.Fi
MobileClientiOS.app/Newtonsoft.Json.dll[外部]
,然后它会崩溃,并出现以下输出:
无法加载文件或程序集“System.Threading.Tasks”或其
依赖关系。系统找不到指定的文件。
(System.IO.FileNotFoundException)位于System.AppDomain.Load
(System.Reflection.AssemblyName assemblyRef,
中的System.Security.Policy.Security)[0x00081]
…/mono/mcs/class/corlib/System/AppDomain.cs:706 at
System.AppDomain.Load(System.Reflection.AssemblyName assemblyRef)
[0x00000]位于…/mono/mcs/class/corlib/System/AppDomain.cs:674处
System.Reflection.Assembly.Load(System.Reflection.AssemblyName
中的assemblyRef)[0x00000]
…/mono/mcs/class/corlib/System.Reflection/Assembly.cs:551 at
ObjCRuntime.Runtime.CollectReferencedAssembly
(System.Collections.Generic.List 1程序集,
中的System.Reflection.Assembly[0x00019]
…/maccore/src/ObjCRuntime/Runtime.cs:218 at
ObjCRuntime.Runtime.CollectReferencedAssembly
(System.Collections.Generic.List 1程序集,
System.Reflection.Assembly组件)[0x0002c]位于
…/maccore/src/ObjCRuntime/Runtime.cs:220 at
ObjCRuntime.Runtime.CollectReferencedAssembly
(System.Collections.Generic.List 1程序集,
System.Reflection.Assembly组件)[0x0002c]位于
…/maccore/src/ObjCRuntime/Runtime.cs:220 at
ObjCRuntime.Runtime.RegisterEntryAssembly(System.Reflection.Assembly
输入(U程序集)[0x0001b]
…/maccore/src/ObjCRuntime/Runtime.cs:200 at
中的ObjCRuntime.Runtime.RegisterEntryAssembly(IntPtr a)[0x00000]
…/maccore/src/ObjCRuntime/Runtime.cs:158 at
ObjCRuntime.Runtime.register_条目_程序集(IntPtr程序集)
[0x00000]位于…/maccore/runtime/Delegates.generated.cs:118处
(包装器本机到托管)
ObjCRuntime.Runtime:register_entry_assembly(intptr)2015-05-04
MobileClientiOS[77830:1943120]关键:有一段时间收到了信号
执行本机代码。这通常表示系统中存在致命错误
mono运行时或应用程序使用的本机库之一
抱歉这么长时间的跟踪,但我没有主意了。我们正在使用PCL,但在这次Xamarin Studio升级之前没有出现问题
谢谢大家!
编辑: 我降级了Xamarin.iOS,它又开始工作了。它似乎失败的程序集是(现在与旧版本一起使用): /MobileClientiOS.app/System.Xml.Linq.dll[外部]
如何使用最新版本运行?我不知道。猜一猜,我认为这可能与其他原因相同 如果这是真的,那么同样的解决方法很有可能奏效: 在“项目选项->iOS构建->其他mtouch参数”下添加: -linkskip=System.Threading.Tasks 如果这个解决方法确实有效,那么这个问题很可能会在即将发布的服务版本(将于本周晚些时候发布)中得到解决 更新日期:2015年7月2日
事实证明,
System.Threading.Tasks
存在另一个微妙不同的常见问题原因。第二个bug最初是由bug 29211隐藏的,因为这两个bug非常相似。第二个问题现在正在调查中。请注意,此错误只影响模拟器构建,并且有相当简单的解决方法,因此其严重性很小。一个小时以来,我遇到了同样的问题,并且出现了完全相同的错误消息。肯定与最新的更新有关,因为与今天早些时候更新之前的代码完全相同。我们的应用程序通过Newtonsoft.Json.dll,但在加载System.Net.Http.dll后遇到相同的错误。这不是真正的解决方案,但我们的应用程序至少在链接器关闭时启动。因此,链接器似乎再次成为问题所在。再次将我的xamarin studio升级到最新版本(sdk 6.4)。同样的问题,这就解决了。上次我又降级了。W-t-f是怎么回事?他们不能修理吗?