Visual Studio,毛伊岛,dotnet 发布。无法使用以下身份验证方法进行身份验证:KeyboardInteractiveAuthenticationMethod

Visual Studio, Maui, dotnet publish. Unable to authenticate using the following authentication method: KeyboardInteractiveAuthenticationMethod

在连接到 Mac Mini (M1) 的 Visual Studio 2022(预览版 2.1)中发布 Maui(预览版 14)应用程序时,代码签名发布失败,但似乎是一些身份验证错误:

C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: KeyboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]

环境信息

附加信息

尝试过的操作

额外的日志记录:

C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication met
hod: KeyboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication met
hod: KeyboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : data [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Security.Cryptography.BlockCipher.Encrypt(Byte[]
data, Int32 offset, Int32 length) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authentic
ate(Session session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthent
icate(Session session, AuthenticationMethod method) in D:\a\_work\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : data [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Security.Cryptography.BlockCipher.Encrypt(Byte[]
data, Int32 offset, Int32 length) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authentic
ate(Session session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthent
icate(Session session, AuthenticationMethod method) in D:\a\_work\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication met
hod: PasswordAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication met
hod: PasswordAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : data [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Security.Cryptography.BlockCipher.Encrypt(Byte[]
data, Int32 offset, Int32 length) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session
 session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthent
icate(Session session, AuthenticationMethod method) in D:\a\_work\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : data [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Security.Cryptography.BlockCipher.Encrypt(Byte[]
data, Int32 offset, Int32 length) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session
 session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthent
icate(Session session, AuthenticationMethod method) in D:\a\_work\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]

过滤掉 身份验证失败:

Unable to authenticate using the following authentication method: KeyboardInteractiveAuthenticationMethod

Unable to authenticate using the following authentication method: PasswordAuthenticationMethod

Client not connected.

An error occurred while using the SCP Client. Details: Permission denied (publickey).

An error occurred while uploading files

Session operation has timed out

第二次 运行ned 时(创建某些文件时),日志中的第一个错误行是:

C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.Shared.targets(2095,3):
Access to the path 'C:\Users\ecomation\Library\Caches\Xamarin\mtbs\builds\ecotouch
mobile238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.app\_CodeSignature\CodeResources' is denied. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]

C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.Shared.targets(2095,3):
warning : Access to the path 'C:\Users\ecomation\Library\Caches\Xamarin\mtbs\builds\ecotouch
mobile238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.app\ecotouch-mobile' is denied. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]

这些文件夹是在之前的 运行 中自动创建的。

毛伊岛问题Github:https://github.com/dotnet/maui/issues/5632

[补充信息]

警告可能不是它不起作用的原因。 生成的 IPA 似乎是有效的,但大多数文件都是空的:

这似乎导致:

ERROR ITMS-90207: 
"Invalid Bundle. The bundle at 'ecotouch-mobile.app' does not contain a bundle executable."

已将所有内容完全更新为最新版本(mac、所有工作负载、visual studio 等),现在可以使用了。抛出所有相同的警告,但无论如何都会生成一个工作包。