ERROR
Cannot create IOS archive 'MyIosProject'. Process cannot be executed on XMA server. There was an error unzipping the file
C:\Users\myusername\AppData\Local\Xamarin\iOS\Archives\2020-04-08\ac002825.zip
: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
WHAT I HAVE TRIED SO FAR
<PropertyGroup><UseShortFileNames>True</UseShortFileNames></PropertyGroup>
None of the above solved my issue.
UPDATE: you can now specify this directory in Visual Studio under Tools -> Options -> Xamarin -> iOS Settings -> Archives
. I have changed this path to: C:\Users\myusername\0
I had to update all my NuGet packages. Deleted obj and bin folders, restored nuget packages for the solution and rebuilded my project and on Windows also had to delete all IntermediateOutputPath in my csproj file of iOS project.