gpt4 book ai didi

ios - 启动 Xamarin iOS 应用程序失败并显示日志消息 "An error occurred searching types for the given assembly"

转载 作者:行者123 更新时间:2023-11-29 11:56:43 25 4
gpt4 key购买 nike

总结

我尝试在 Visual Studio 中基于 Xamarin Forms 开发一个 iOS 应用程序,但我发现当我尝试运行该应用程序时,它无法在我的手机上启动。我有一个有效的 iOS 开发证书,并且我过去能够启动该应用程序,尽管我不确定从那时到现在可能发生了什么变化(我一直在断断续续地研究它)。

我在 Visual Studio 的调试控制台中遇到的错误是 Launch failed. The app '<<app name>>' could not be launched on '<<my iPhone>>'. Please check the logs for more details.

我进一步包含了 Xamarin 日志。

环境

我正在 Windows 10 PC 上的 Visual Studio 中开发我的项目。我在与 Xamarin Mac 代理相同的网络上使用 MacBook Pro,它通过 USB 连接到作为构建目标的 iPhone 6s Plus。

  • Windows 10 64 位
  • Visual Studio 2015 更新 3
  • Xamarin 4.1.1.3
  • Xamarin.Android 6.1.1.1
  • Xamarin.iOS 9.8.1.4
  • 装有 OS X El Capitan 10.11.6 作为 Xamarin Mac 代理的 Macbook Pro
  • XCode 7.3.1(在 Mac 代理上)
  • Mac 代理上的 Xamarin Studio 6.0.2(稳定 channel 无需更新)
  • iPhone 6s Plus(设备目标)

已安装的 Nuget 包

<packages>
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wpa81" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="portable45-net45+win8+wpa81" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wpa81" />
<package id="modernhttpclient" version="2.4.2" targetFramework="portable45-net45+win8+wpa81" />
<package id="rda.SocketsForPCL" version="1.2.2" targetFramework="portable45-net45+win8+wpa81" />
<package id="WebSocket.Portable.Core" version="1.2.6" targetFramework="portable45-net45+win8+wpa81" />
<package id="WebSocketSharp" version="1.0.3-rc10" targetFramework="portable45-net45+win8+wpa81" />
<package id="Xamarin.Forms" version="2.3.1.114" targetFramework="portable45-net45+win8+wpa81" />
</packages>

更多详情

当我尝试执行我的应用程序时,我收到以下错误日志。根本原因似乎是它找不到 C# 类型 System.ComponentModel.Win32Exception :

Xamarin.VisualStudio.Forms.Intellisense.ProjectTypeResolver Error: 0 : [2016-08-07 22:07:07.7530] An error occurred searching types for the given assembly
System.TypeLoadException: Cannot find type System.ComponentModel.Win32Exception in module System.dll.
at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError)
at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
at Microsoft.MetadataReader.TypeProxy.get_Module()
at Microsoft.MetadataReader.MetadataOnlyTypeDef.Equals(Type other)
at Microsoft.VisualStudio.Shell.Design.TypeWrapper.Equals(Type o)
at Microsoft.MetadataReader.MetadataOnlyTypeDef.IsValueTypeHelper()
at Microsoft.MetadataReader.MetadataOnlyTypeDef.IsValueTypeImpl()
at Microsoft.VisualStudio.Shell.Design.TypeWrapper.IsValueTypeImpl()
at System.Type.get_IsClass()
at Xamarin.VisualStudio.Forms.Intellisense.ProjectTypeResolver.<SearchTypesAsync>b__19_0() in C:\Users\builder\data\lanes\3420\34a92cd0\source\xamarinvs\src\Features\VisualStudio.Forms.Intellisense\ProjectTypeResolver.cs:line 184
Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-08-07 22:07:11.4859] An error occured on the receiver while executing a post for topic xvs/idb/4.1.1.3/launch-app and client vs11512david
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client IDB4113 while executing a reply for topic xvs/idb/4.1.1.3/launch-app ---> Xamarin.Messaging.Exceptions.MonotouchException: warning HE0041: Error while processing device notifications: NotificationCallback with unknown message: 5

at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__6.MoveNext () <0x7566158 + 0x007e3> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.MTouch+<DeployAsync>d__4.MoveNext () <0x75c41b8 + 0x0032f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<RunMTouchAsync>d__17.MoveNext () <0x75c3a18 + 0x0021b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceWithoutAssetsAsync>d__16.MoveNext () <0x75c2478 + 0x001db> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceAsync>d__14.MoveNext () <0x75c1880 + 0x004b7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteAsync>d__12.MoveNext () <0x75c10e0 + 0x0039f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x18a92a0 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__5[TMessage,TResult].MoveNext () <0x75605c8 + 0x003d7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_0`2+<<RegisterHandlerAsync>b__1>d[TMessage,TResult].MoveNext () <0x755fc08 + 0x002bb> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__34`2[TRequest,TResponse].MoveNext () <0x755ec90 + 0x00383> in <filename unknown>:0
--- End of inner exception stack trace ---
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__22`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__26`2.MoveNext()
Xamarin.VisualStudio.IOS.IdbClient Error: 0 : [2016-08-07 22:07:14.0450] Launch failed. The app 'TestCubeWebMobileiOS' could not be launched on 'David's iPhone'. Please check the logs for more details.
Xamarin.Messaging.Exceptions.MonotouchException: warning HE0041: Error while processing device notifications: NotificationCallback with unknown message: 5

at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__6.MoveNext () <0x7566158 + 0x007e3> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.MTouch+<DeployAsync>d__4.MoveNext () <0x75c41b8 + 0x0032f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<RunMTouchAsync>d__17.MoveNext () <0x75c3a18 + 0x0021b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceWithoutAssetsAsync>d__16.MoveNext () <0x75c2478 + 0x001db> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceAsync>d__14.MoveNext () <0x75c1880 + 0x004b7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteAsync>d__12.MoveNext () <0x75c10e0 + 0x0039f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x18a92a0 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__5[TMessage,TResult].MoveNext () <0x75605c8 + 0x003d7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_0`2+<<RegisterHandlerAsync>b__1>d[TMessage,TResult].MoveNext () <0x755fc08 + 0x002bb> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__34`2[TRequest,TResponse].MoveNext () <0x755ec90 + 0x00383> in <filename unknown>:0

更新

基于Marcos' response升级到Xamarin 4.1.2.18后我发现我仍然无法调试我的应用程序,但我得到了不同的错误日志输出,已发布 here (因为我无法将其放入此帖子正文中)。

它仍然提示找不到 Win32Exception , 然而。

更新 2

可以在 Xamarin Studio 中构建和启动在我的 Macbook Pro 上开发的 Xamarin iOS 应用

可以使用 Windows 机器上的 iOS 模拟器成功启动和调试我的(实际)Xamarin Forms 应用程序(如果我无法解决此错误,这实际上非常有用)。

无法从我的 Windows 机器上在我的实际 iPhone 上成功启动/调试我的实际 Xamarin Forms 应用。

最佳答案

尝试更新到最新的 alpha 版本是 4.2.0.413 - 安装在 Windows 机器和 Xamarin Mac 主机上

关于ios - 启动 Xamarin iOS 应用程序失败并显示日志消息 "An error occurred searching types for the given assembly",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38818617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com