I have a problem building an iOS App with .NET MAUI. When running dotnet build -f net8.0-ios, the App Builder starts and gets stuck in the Build Task _XamarinBuildDownloadCore. The time counter is still active and I cancelled the task after 4000 seconds.
I already did some research to narrow down the cause:
Xamarin.Build.Download this is a transitive package of my used one Plugin.Firebase.CloudMessaging-bl to create a binary log, but since the build task never ends, the log is unfortunately unusableHow to recreate the problem:
dotnet build -f net8.0-ios and everything runs finePlugin.Firebase.CloudMessaging Package to your projectdotnet build -f net8.0-ios again, now the Build starts and proceed up to _XamarinBuildDownloadCore and nothing more happens. When you build your project from Visual Studio the Build Task just runs forever without any log.So my questions are:
I found a work around for this issue (Windows 11) on the repo for dotnet Android (even tho it worked for iOS)
https://github.com/dotnet/android-libraries/issues/1047
For me, this issue came about after running into an issue with long file name limits on Windows. I followed these steps:
https://github.com/AdamEssenmacher/GoogleApisForiOSComponents?tab=readme-ov-file#windows--visual-studio-long-path-issue
...and when building the solution again it hung on building iOS at _XamarinBuildDownloadCore as well.
The work around is this:
Go to the directory: C:\Users\[USER]\AppData\Local\XamarinBuildDownloadCache
Look for GAppM-<version>.tgz and extract it. Make sure to extract it to the directory named GAppM-<version>. The directory already existed for me and I chose to overwrite it.
In the XamarinBuildDownloadCache directory look for any file with .unpacked extension and make a copy of it, renaming it to GAppM-<version>.unpacked. It's just a flag file that tells the system it's done processing.
Run your build again.
This worked for me, but if you need more info, check that first link for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With