dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.27k stars 1.76k forks source link

(dotnet publisch ios) Unable to authenticate using the following authentication method: KeyboardInteractiveAuthenticationMethod / Invalid Bundle. #5632

Closed FirewizzNL closed 2 years ago

FirewizzNL commented 2 years ago

Description

dotnet publish ios (dotnet publish -f:net6.0-ios -c:Release) leads to file path problems:

It does build and signes the IPA only it does't include the app resulting in the following error when uploading to apple:

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

Screens of warnings (filepath problems) image

image

image

Also ssh problem: image

Steps to Reproduce

  1. Install MAUI preview 13
  2. Update To preview 14
  3. Update latest service update
  4. Build/publish using dotnet publish to mac

Version with bug

Preview 14 (current)

Last version that worked well

Preview 13

Affected platforms

iOS

Affected platform versions

IOS,MacOs

Did you find any workaround?

No workaround found.

Relevant log output

C:\repo\ecotouch-mobile\ViewModels\DashboardViewModel.cs(209,30): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls,
or 'await Task.Run(...)' to do CPU-bound work on a background thread. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
  ecotouch-mobile -> C:\repo\ecotouch-mobile\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.dll
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.Shared.targets(1102,3): warning : The filename, directory name, or volume label syntax is incorrect. : 'C:\repo\ecotouch-mo
bile\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.app\C:\repo\ecotouch-mobile\Platforms\iOS\Resources' [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
  /Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/dotnet "/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/sdk/6.0.300-preview.22154.4/Sdks/Microsoft.NET.ILLink.Tasks/build/../tools/net6.0/illink.dll" -a "o
  bj/Release/net6.0-ios/ios-arm64/ecotouch-mobile.dll"
  -a "obj/Release/net6.0-ios/ios-arm64/ecotouch-mobile.dll"

 {references}

  --singlewarn- "ecotouch-mobile"
  -out "obj/Release/net6.0-ios/ios-arm64/linked/"
  --nowarn "1701;1702;IL2026;IL2041;IL2042;IL2043;IL2056;IL2045;IL2046;IL2050;IL2032;IL2055;IL2057;IL2058;IL2059;IL2060;IL2061;IL2096;IL2062;IL2063;IL2064;IL2065;IL2066;IL2067;IL2068;IL2069;IL2070;IL2071;IL2072;IL2073;IL2
  074;IL2075;IL2076;IL2077;IL2078;IL2079;IL2080;IL2081;IL2082;IL2083;IL2084;IL2085;IL2086;IL2087;IL2088;IL2089;IL2090;IL2091;IL2092;IL2093;IL2094;IL2095;IL2097;IL2098;IL2099;IL2106;IL2103;IL2107;IL2109;IL2110;IL2111;IL211
  4;IL2115;IL2112;IL2113;1701;1702"
  --warn "5"
  --warnaserror- --warnaserror ";NU1605"
  --feature Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability false
  --feature System.AggressiveAttributeTrimming true
  --feature System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization false
  --feature System.Diagnostics.Debugger.IsSupported false
  --feature System.Diagnostics.Tracing.EventSource.IsSupported false
  --feature System.Globalization.Invariant false
  --feature System.Net.Http.EnableActivityPropagation false
  --feature System.Net.Http.UseNativeHttpHandler true
  --feature System.Reflection.Metadata.MetadataUpdater.IsSupported false
  --feature System.Reflection.NullabilityInfoContext.IsSupported false
  --feature System.Resources.ResourceManager.AllowCustomResourceTypes false
  --feature System.Resources.UseSystemResourceKeys true
  --feature System.Runtime.InteropServices.BuiltInComInterop.IsSupported false
  --feature System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization false
  --feature System.StartupHookProvider.IsSupported false
  --feature System.Threading.Thread.EnableAutoreleasePool true
  --feature System.Text.Encoding.EnableUnsafeUTF7Encoding false
  --trim-mode link
  --action copy
  --custom-step "-MarkStep:Xamarin.SetupStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-MarkStep:Xamarin.Linker.CollectAssembliesStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-MarkStep:MonoTouch.Tuner.CoreTypeMapStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-MarkStep:MonoTouch.Tuner.RegistrarRemovalTrackingStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-MarkStep:Xamarin.Linker.Steps.PreMarkDispatcher,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.Steps.PreserveBlockCodeHandler,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.OptimizeGeneratedCodeHandler,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.BackingFieldDelayHandler,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.MarkIProtocolHandler,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.Steps.MarkDispatcher,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.Steps.PreserveSmartEnumConversionsHandler,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "+SweepStep:Xamarin.Linker.Steps.PostSweepDispatcher,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-OutputStep:Xamarin.Linker.Steps.ListExportedSymbols,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-OutputStep:Xamarin.Linker.LoadNonSkippedAssembliesStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-OutputStep:Xamarin.Linker.ExtractBindingLibrariesStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "-OutputStep:Xamarin.Linker.Steps.PreOutputDispatcher,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.RegistrarStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.GenerateMainStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.GenerateReferencesStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.GatherFrameworksStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.ComputeNativeBuildFlagsStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.ComputeAOTArguments,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --custom-step "Xamarin.Linker.DoneStep,/Users/ecomation/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/dotnet-linker/dotnet-linker.dll"
  --skip-unresolved true  --custom-data "LinkerOptionsFile=obj/Release/net6.0-ios/ios-arm64/custom-linker-options.txt" --verbose -b --disable-opt unusedtypechecks --enable-opt sealer --feature ObjCRuntime.Runtime.Arch.IsS
  imulator false

  Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -i -s obj/Release/net6.0-ios/ios-arm64/mtouch-symbols.list obj/Release/net6.0-ios/ios-arm64/nativelibraries/ecotouch-mobile
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.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\ecotouchmobile\
45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.app\_CodeSignature' is denied. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.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\ecotouchmobile\
45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed\bin\Release\net6.0-ios\ios-arm64\ecotouch-mobile.app' is denied. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
  /usr/bin/codesign --verify -vvvv "-R=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.10
  0.6.1.4] exists)" bin/Release/net6.0-ios/ios-arm64/ecotouch-mobile.app
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: KeyboardInter
activeAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : An established connection was aborted by the server. [C:\repo\ecotouch-mobile\ecotouch
-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) [C:\r
epo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\ecotouch-mobil
e\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: KeyboardInter
activeAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: PasswordAuthe
nticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Client not connected. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Client not connected. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.SendPacket(Byte[] packet, Int32 offset, Int32 length) [C:\r
epo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\ecotouch-mobile\ecoto
uch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session) [C:\repo
\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: KeyboardInter
activeAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Client not connected. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: KeyboardInter
activeAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) [C:\r
epo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\ecotouch-mobil
e\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: Unable to authenticate using the following authentication method: PasswordAuthe
nticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) [C:\r
epo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\ecotouch-mobil
e\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session) [C:\repo
\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(Session sess
ion, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: An error occurred while using the SCP Client. Details: Permission denied (publi
ckey). [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Permission denied (publickey). [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectio
nInfo, ISession session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory servi
ceFactory) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.Connect() [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.BaseClient.CreateAndConnectSession() [C:\repo\ecotouch-mobile\ecoto
uch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.BaseClient.Connect() [C:\repo\ecotouch-mobile\ecotouch-mobile.cspro
j]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingScpClient.ExecuteAsync(Action`1 action, Boolean r
etry) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 150 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : [xma]: An error occurred while uploading files [C:\repo\ecotouch-mobile\ecotouch-mobil
e.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning : Permission denied (publickey). [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectio
nInfo, ISession session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory servi
ceFactory) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.Session.Connect() [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.BaseClient.CreateAndConnectSession() [C:\repo\ecotouch-mobile\ecoto
uch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Renci.SshNet.BaseClient.Connect() [C:\repo\ecotouch-mobile\ecotouch-mobile.cspro
j]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingScpClient.ExecuteAsync(Action`1 action, Boolean r
etry) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 150 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingScpClient.ExecuteAsync(Action`1 action, Boolean r
etry) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 180 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingScpClient.ExecuteAsync(Action`1 action, Boolean r
etry) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 175 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingScpClient.UploadAsync(Stream source, String path)
 in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 70 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.targets(405,3): warning :    at Xamarin.Messaging.Ssh.MessagingFileManager.UploadFileAsync(Stream source, String
 targetPath, IProgress`1 progress, Int32 progressRange) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingFileManager.cs:line 305 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
  /usr/bin/ditto /Users/ecomation/Library/Caches/Xamarin/mtbs/builds/ecotouchmobile/45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed/bin/Release/net6.0-ios/ios-arm64/ecotouch-mobile.app /Users/ecomation/Li
  brary/Caches/Xamarin/mtbs/builds/ecotouchmobile/45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed/obj/Release/net6.0-ios/ios-arm64/ipa/Payload/ecotouch-mobile.app/
  /usr/bin/zip -r -y /Users/ecomation/Library/Caches/Xamarin/mtbs/builds/ecotouchmobile/45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed/bin/Release/net6.0-ios/ios-arm64/publish//ecotouch-mobile.ipa Payloa
  d
  /usr/bin/zip -r -y /Users/ecomation/Library/Caches/Xamarin/mtbs/builds/ecotouchmobile/45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed/obj/Release/net6.0-ios/ios-arm64/archives/842b89cc.zip "ecotouch-mob
  ile 3-29-22 1.05 PM.xcarchive"
C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(120,3): error : There was an error unzipping the file C:\Users\ECOMATION-KevinMande\AppDat
a\Local\Xamarin\iOS\Archives\2022-03-29\842b89cc.zip: The filename, directory name, or volume label syntax is incorrect. : 'C:\Users\ECOMATION-KevinMande\AppData\Local\Temp\Xamarin\Extractions\3bb2d345-1b9f-4a38-a8e6-e97d
45b6572d\ecotouch-mobile 3-29-22 1.05 PM.xcarchive\Products\Applications\ecotouch-mobile.app\C:\' [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
FirewizzNL commented 2 years ago

Things I did today trying to solve this:

For now I am out of options and hoping for a solution soon.

I think it is in the

Access to the path xxx is denied

It's the prefixed c:\, the \ instead of / or some weird ACL problem. If I use SSH to connect to mac using putty or ssh in cmd, I am able to navigate the folder.

The second problem that arises is:

Unable to authenticate using the following authentication method: KeyboardInteractiveAuthenticationMethod

I've tried to solve this by doing the following on the mac (in combination with above, with no success):

rm /Users/ecomation/.ssh/authorized_keys
chmod g-w /Users/ecomation/
chmod 700 /Users/ecomation
chmod 700 /Users/ecomation/.ssh/
touch /Users/ecomation/.ssh/authorized_keys
chmod 600 /Users/ecomation/.ssh/authorized_keys
chown ecomation /Users/ecomation/.ssh/authorized_keys

Still nothing to make it work, builds archive but leaves out crucial parts:

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

I've got some extra information on this.

If I remove the following folder on the mac:

~/Library/Caches/Xamarin/mtbs (containing the builds)

The first error Access to the path xxx is denied disappears and now the first error is:

C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.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]

Indicating to me the problem does not lie in the folder formatting but in the renci.SshNet connector.

The weird part is, the initial ssh login succeeds and there are folders beeing created again in the removed folder on the MAC.

First lines after error:

Executing SayHello Task to establish a connection to a Remote Server.
                        Properties:
                                SessionId=45238eb08c3968e031ffb939c9cf1096a0590a34cdab32179a5ce61bef63d9ed,
                                Addresss=192.168.50.218,
                                SshPort=22,
                                TcpPort=,
                                User=ecomation,
                                AppName=ecotouchmobile,
                                VisualStudioProcessId=,
                                ContinueOnDisconnected=true
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Ke
yboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : An established connection was aborted by the server. [C:\repo\ecotouch-mobi
le\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan tim
eout) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Ses
sion session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\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\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Pa
sswordAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : Client not connected. [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.SendMessage(Message message) [C:\repo\ecotouch-m
obile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\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\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Ke
yboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.cs
proj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan tim
eout) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Ses
sion session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\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\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Ke
yboardInteractiveAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.cs
proj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan tim
eout) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Ses
sion session) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\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\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Pa
sswordAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.cs
proj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan tim
eout) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\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\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : [xma]: Unable to authenticate using the following authentication method: Pa
sswordAuthenticationMethod [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning : Session operation has timed out [C:\repo\ecotouch-mobile\ecotouch-mobile.cs
proj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan tim
eout) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) [C:\repo\eco
touch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session sessio
n) [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.200-preview.14.5099\targets\Microsoft.Maui.Resizetizer.targets(518,9): warning :    at Xamarin.Messaging.Ssh.MessagingAuthenticationMethod.TryAuthenticate(S
ession session, AuthenticationMethod method) in D:\a\_work\1\s\src\Xamarin.Messaging.Ssh\MessagingAuthenticationMethod.cs:line 118 [C:\repo\ecotouch-mobile\ecotouch-mobile.csproj]
FirewizzNL commented 2 years ago

Also created the quesion on Stack. Possible with some additional information: https://stackoverflow.com/questions/71735005/visual-studio-maui-dotnet-publish-unable-to-authenticate-using-the-following

FirewizzNL commented 2 years ago

[ADDED INFORMATION]

It could be the case the warnings are not the reason why it doesn't work. The IPA that is generated seems to be valid, but most files are empty:

image

Which seems to be causing:

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

For now I am out of options and unable to publish an IPA. Hoping for a solution soon.

FirewizzNL commented 2 years ago

Btw. New project (empty) with everything re-installed produced the same problem.

FirewizzNL commented 2 years ago

Included a file which includes commands I've done and results. dotnetPublishIosFailOutputLog.txt

RaspeR87 commented 2 years ago

Same problem for me. Any workaround? I could build in debug mode for iOS simulator or iOS Remote Device to my physical iPhone, but I couldn't build in Release mode for App Store with this command:

dotnet publish -f:net6.0-ios -c:Release /p:ServerAddress=**.**.**.** /p:ServerUser=******* /p:ServerPassword=****** /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:_DotNetRootRemoteDirectory=/Users/*******/Library/Caches/Xamarin/XMA/SDKs/dotnet/ /p:EnableAssemblyILStripping=false

FirewizzNL commented 2 years ago

I did not found any workaround or way to publish, and I've tried a lot.

FirewizzNL commented 2 years ago

@Redth Is there any timeframe this issue is getting looked at since this is completely blocking the release track?

FirewizzNL commented 2 years ago

Updated to Visual studio 17.2.0 Preview 3.0 No luck there..

FirewizzNL commented 2 years ago

Fully updated everything to latest (mac, all workloads, visual studio etc.), now it works. Throws all the same warnings but produces a working package anyways.