无法验证VS 2019中Xamarin Forms热重启配置功能的代码签名

问题描述

我正在遵循Look iOS DeveloperXamarin Hot Restart在VS 2019(最新版本)中运行新创建的Xamarin Forms应用程序。完成步骤后,我无法在设备中运行该应用程序。我无法验证代码签名错误。 我新创建了我的App Developer帐户,我还可以在App Developer门户中看到用于提供的证书VS 2019。

Unhandled Exception: Xamarin.iOS.Windows.WindowsiOSException: Failed to install the application: ApplicationVerificationFailed(3892346904) - Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.9VqxJr/extracted/Payload/App4.iOS.app : 
    0xe8008018 (The identity used to sign the executable is no longer valid.)
       at Xamarin.iOS.Windows.Installer.ApplicationSession.OnInstallProgressReport(IntPtr command,IntPtr status,IntPtr userData) in C:\A\_work\80\s\src\Tools\Xamarin.iOS.Windows.Launcher\Installer\ApplicationSession.cs:line 324
    An error occurred while trying to deploy the app 'App4.iOS.app'. 
    Details: Error running hotrestart: 'An unexpected error occurred and the process has been terminated'. Command: 'deploy -u=fbffae2ce4c666b7fdb7d99f065bbd40cf4f83ad -i=com.companyname.App4 -n=App4.iOS.app'
    2>Deploy Failed. The app 'App4.iOS.app' Could not be deployed to the device 'Ab'. Please check the logs for more details.

解决方法

简单的重启就可以解决问题。