Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build stuck on Extracting Extracting ...\XamarinBuildDownloadCache\GMps-9.1.1.tgz to ...\XamarinBuildDownloadCache\GMps-9.1.1 #26045

Open
LeoJHarris opened this issue Nov 22, 2024 · 12 comments
Labels
platform/iOS 🍎 t/bug Something isn't working

Comments

@LeoJHarris
Copy link

LeoJHarris commented Nov 22, 2024

Description

I'm having a hard time trying to get a deployment onto any device including a simple emulator on my current project, the issue is the following is getting stuck. Targeting .NET 8.

1>Done building target "_GMpsDownloadedItems" in project "XXXX.csproj".
1>Target "_XamarinBuildAddDownloadedItems" in file "C:\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.targets":
1>Done building target "_XamarinBuildAddDownloadedItems" in project "XXXX.csproj".
1>Target "_XamarinBuildDownloadCore" in file "C:\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.targets":
1>  Using "XamarinDownloadArchives" task from assembly "C:\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.dll".
1>  Task "XamarinDownloadArchives"
1>    Task Parameter:IsAndroid=False
1>    Task Parameter:CacheDirectory=C:\Users\XXXX\AppData\Local\XamarinBuildDownloadCache\
1>    Task Parameter:
1>        Archives=
1>            GMps-9.1.1
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/9555231399d822b1/GoogleMaps-9.1.1.tar.gz
1>    Task Parameter:VsInstallRoot=C:\Program Files\Microsoft Visual Studio\2022\Community
1>    Task Parameter:AllowUnsecureUrls=False
1>    Task Parameter:DestinationBase=C:\Users\XXXX\AppData\Local\XamarinBuildDownloadCache\
1>    Assembly loaded during TaskRun (Xamarin.Build.Download.XamarinDownloadArchives): Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Microsoft.Win32.Registry.dll, MVID: f165d2aa-905d-4dd4-8e4a-317d747f8224, AppDomain: [Default])
1>    Extracting C:\Users\XXXX\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1.tgz to C:\Users\XXXX\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1

Its just not moving at all, left the project to build for over an hour and nothing. Currently this is blocking my ability to even test our iOS app.

Frustratingly, if I quickly create an iOS MAUI app I can get a deployment so seems specific to my project but would appreciate some assistance.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.100 SR10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

iOS

Did you find any workaround?

No

Relevant log output

@LeoJHarris LeoJHarris added the t/bug Something isn't working label Nov 22, 2024
@maonaoda
Copy link
Contributor

@LeoJHarris
Copy link
Author

@maonaoda Is there any ETA when this might be fixed? This is quite a serious issue for us as we cannot even deploy the app no matter which configuration we use.

@ninachen03
Copy link

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

@LeoJHarris
Copy link
Author

@ninachen03 is this not related to dotnet/android-libraries#1048 which has an open PR?

@maonaoda
Copy link
Contributor

Before the PR, you can try to use this temporarily.
https://www.nuget.org/packages/Maonaoda.Xamarin.Build.Download

@LeoJHarris
Copy link
Author

@maonaoda how do I instruct the project to use that package instead?

The build still shows the following:

1>    Assembly loaded during TaskRun (Xamarin.Build.Download.XamarinDownloadArchives): Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Microsoft.Win32.Registry.dll, MVID: f165d2aa-905d-4dd4-8e4a-317d747f8224, AppDomain: [Default])
1>    Extracting C:\Users\\###\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1.tgz to C:\Users\###\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1

@maonaoda
Copy link
Contributor

You may need to close the current 7zip process first.

@LeoJHarris
Copy link
Author

@maonaoda Can you advise on how to do that?

@maonaoda
Copy link
Contributor

From Task Manager, open the Resource Monitor, and under CPU, search for associated processes like 7z.exe or XamarinBuildDownloadCache, locate them, and terminate them.
Image

@LeoJHarris
Copy link
Author

@maonaoda thanks for the response, on terminating the 7z.exe I get the following and the build immediately stops

Unpacking failed. Please download 'https://dl.google.com/dl/cpdc/9555231399d822b1/GoogleMaps-9.1.1.tar.gz' and extract it to the 'C:\Users\Myself\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1' directory and create an empty file called 'C:\Users\Myself\AppData\Local\XamarinBuildDownloadCache\GMps-9.1.1.unpacked'.

@LeoJHarris
Copy link
Author

LeoJHarris commented Nov 25, 2024

@maonaoda seems to be like I would need to remove the package Onion.Maui.GoogleMaps package which is what the above seems to be complaining about, this is not a solution I can run with. Ill wait on PR to be available.

@maonaoda
Copy link
Contributor

Sure, but I can use it :)
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants