【问题标题】:Failed to install application Xamarin.Forms iOS USB无法安装应用程序 Xamarin.Forms iOS USB
【发布时间】:2021-08-07 10:13:46
【问题描述】:

将 Visual Studio 更新到 16.9.5 后,我无法使用 USB 在 iOS 上运行我的所有项目。

Visual Studio 输出:

未处理的异常: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\Tools\Xamarin.iOS.Windows.Launcher\Installer
应用会话。 cs:第 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|Information|0|正在获取有效且本地安装的签名身份... Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在为“Ivan”团队同步证书... System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息 Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在为 Ivan 创建证书签名请求... System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xma/ping/vs12345IVAN System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 xma/ping/vs12345IVAN 的应用程序消息 Xamarin.Messaging.Client.PingHandler|信息|0|vs12345IVAN 收到 ping。发送确认... System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息 System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将 PublishAck 消息发送到流 PublishSenderFlow Xamarin.VisualStudio.Progress.ProgressReportService|信息|0|正在创建证书... System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 vs12345IVAN/response/xma/ping/Broker169000292 System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 vs12345IVAN/response/xma/ping/Broker169000292 的应用程序消息 System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 xvs/idb/auto-provision-output System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 xvs/idb/auto-provision-output 的应用程序消息 Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|尝试自动预配项目时出错,请检查日志。 System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs12345IVAN - 将发布消息分发到流 PublishReceiverFlow 和主题 vs12345IVAN/error/xvs/idb/auto-provision System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs12345IVAN - 收到主题 vs12345IVAN/error/xvs/idb/auto-provision 的应用程序消息 Xamarin.Messaging.Client.MessagingClient|错误|0|在执行主题 xvs/idb/auto-provision 和客户端 vs12345IVAN 的帖子时,接收器发生错误 Xamarin.Messaging.Exceptions.MessagingRemoteException:执行主题 xvs/idb/auto-provision 的回复时,客户端 IDBLocal123456789 发生错误 ---> System.ObjectDisposedException:无法访问已处置的对象。 对象名称:'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(任务任务) 在 Xamarin.MacDev.AppleSigning.DeveloperPortalWebClient.c__DisplayClass25_0.d.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/DeveloperPortalWebClient.cs :第 127 行 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.DeveloperPortalWebClient.d__25.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/DeveloperPortalWebClient.cs:line 125 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.AuthorizedDeveloperPortalClient.d__7.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AuthorizedDeveloperPortalClient.cs:line 100 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.AuthorizedDeveloperPortalClient.d__4.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AuthorizedDeveloperPortalClient.cs:line 48 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.AppleDeveloperPortal.d__24.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleDeveloperPortal.cs:line 215 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.CreateCertificate.d__9.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/ProvisioningTasks/CreateCertificate.cs:line 84 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.MacDev.AppleSigning.ResolveCertificate.d__13.MoveNext() 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/ProvisioningTasks/ResolveCertificate.cs:line 90 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.Messaging.IDB.AppleProvisioningManager.d__20.MoveNext() 在 C:\A\1\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 369 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.Messaging.IDB.Local.AutoProvisionHandler.d__2.MoveNext() 在 C:\A\1\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\AutoProvisionHandler.cs:line 17 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.Messaging.Client.RequestHandler2.<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_12.d.MoveNext() 在 C:\A\1\230\s\src\Xamarin.Messaging.Client\MessageHandlerManager.cs:line 0 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Xamarin.Messaging.Client.MessagingClient.d__322.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_01.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__212.MoveNext() 在 C:\A\1\230\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 190

【问题讨论】:

标签: ios xamarin.forms


【解决方案1】:

Visual Studio have a new version

只需更新 Visual Studio

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-07
    • 2014-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-08
    • 2018-12-24
    相关资源
    最近更新 更多