问题描述
将 Visual Studio 更新到 16.9.5 后,我无法使用 USB 在 iOS 上运行我的所有项目。
未处理的异常:Xamarin.iOS.Windows.WindowsiOSException:失败
安装应用程序:ApplicationVerificationFailed (3891236905) - 失败
验证代码签名
/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.bW5OAX/
提取/有效载荷/EmptyIOS.iOS.app:0xe8008019(应用程序
没有有效的签名。)在
Xamarin.iOS.Windows.Installer.ApplicationSession.OnInstallProgressReport
(IntPtr command,IntPtr status,IntPtr userData) at C:\A\1\1\s
\ src \ 工具 \ Xamarin.iOS.Windows.Launcher \ 安装程序
应用会话。 cs: line 324 尝试执行时出错
部署“EmptyIOS.iOS.app”应用程序。详细信息:运行出错
hotrestart: '发生意外错误,进程已被
终止’。命令:'部署 -u = 00008020-000A4C6A2188003A -i =
com.companyname.EmptyIOS -n = EmptyIOS.iOS.app’ 3> 部署失败。
无法在“iPhone (Andrew)”上部署应用程序“EmptyIOS.iOS.app”。
有关更多信息,请参阅日志。 ========== 构建:成功:2,与
错误:0,无变化:0,跳过:0 ====================
部署:成功:0,错误:1,跳过:0 ==========
iOS 捆绑签名:
“自动配置失败,请检查日志”
视觉记录:
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在解析证书...
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在保存 Apple 开发证书...
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在获取有效且本地安装的签名标识...
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在同步“Ivan”团队的证书...
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在为 Ivan 创建证书签名请求...
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xma/ping/vs12345IVAN
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 xma/ping/vs12345IVAN 的应用程序消息
Xamarin.Messaging.Client.PingHandler|信息|0|vs12345IVAN 收到 ping。发送确认...
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将 PublishAck 消息调度到流 PublishSenderFlow
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在创建证书...
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 vs12345IVAN/response/xma/ping/broker169000292
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 vs12345IVAN/response/xma/ping/broker169000292 的应用程序消息
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息
Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|尝试自动预配项目时出错,请检查日志。
System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 vs12345IVAN/error/xvs/idb/auto-provision
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 vs12345IVAN - 收到主题 vs12345IVAN/error/xvs/idb/auto-provision 的应用程序消息
Xamarin.Messaging.Client.MessagingClient|错误|0|在为主题 xvs/idb/auto-provision 和客户端 vs12345IVAN 执行帖子时,接收器发生错误
Xamarin.Messaging.Exceptions.Messagingremoteexception:客户端 IDBLocal123456789 在执行主题 xvs/idb/auto-provision 的回复时出错:无法访问已处理的对象。
对象名称:'System.Net.Http.StringContent'。
在 System.Net.Http.HttpContent.Checkdisposed()
在 System.Net.Http.HttpContent.copyToAsync(流流,TransportContext 上下文)
在 System.Net.Http.httpclienthandler.GetRequestStreamCallback(IAsyncResult ar)
--- 从上一个抛出异常的位置开始的堆栈跟踪结束 ---
在 System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Xamarin.MacDev.AppleSigning.DeveloperPortalWebClient.c__displayClass25_0.2.<HandleAsync>d__5.MoveNext() in C:\A\1\230\s\src\Xamarin.Messaging.Client\Handlers\RequestHandler.cs:line 0 --- End of stack trace from prevIoUs location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.Messaging.Client.MessageHandlerManager.<>c__displayClass16_1
2.2.MoveNext() in C:\A\1\230\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 0 --- End of inner exception stack trace --- at Xamarin.Messaging.Client.ApplicationMessageExtensions.<>c__displayClass10_0
1.b__1(MqttApplicationMessage m) 在 C:\A\1\230\s\src\Xamarin.Messaging.Client\Extensions\ApplicationMessageExtensions.cs:line 194
在 System.Reactive.Linq.ObservableImpl.Select2.Selector._.OnNext(TSource value) in d:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Select.cs:line 39 --- End of stack trace from prevIoUs location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw() at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__21
2.MoveNext() 在 C:\A\1\230\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 190
解决方法
Visual Studio have a new version
只需更新 Visual Studio