Closed FirewizzNL closed 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."
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]
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
[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:
Which seems to be causing:
ERROR ITMS-90207:
"Invalid Bundle. The bundle at 'ecotouch-mobile.app' does not contain a bundle executable."
For now I am out of options and unable to publish an IPA. Hoping for a solution soon.
Btw. New project (empty) with everything re-installed produced the same problem.
Included a file which includes commands I've done and results. dotnetPublishIosFailOutputLog.txt
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
I did not found any workaround or way to publish, and I've tried a lot.
@Redth Is there any timeframe this issue is getting looked at since this is completely blocking the release track?
Updated to Visual studio 17.2.0 Preview 3.0 No luck there..
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.
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:
Screens of warnings (filepath problems)
Also ssh problem:
Steps to Reproduce
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