Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Could not copy ...\xamarin.firebase.ios.installations\... #639

Open
williambuchanan2 opened this issue Nov 30, 2023 · 11 comments
Open

Could not copy ...\xamarin.firebase.ios.installations\... #639

williambuchanan2 opened this issue Nov 30, 2023 · 11 comments

Comments

@williambuchanan2
Copy link

Just wondering if it's on the radar to fix this long running problem sometime? It's causing absolute havoc. Need to shorten those names!

Happens as soon as you bring this into a Visual Studio Maui project.

Could not copy "C:\Ws_ng\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsAuthTokenResult.h" to "C:\Users\WILLIA~1.BUC\AppData\Local\Temp\Xamarin\HotRestart\Signing\PDS.App.PDSX.app\out\PDS.App.PDSX.content\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsAuthTokenResult.h". Exceeded retry count of 10. Failed.
13>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\16.4.7125\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(264,3): error MSB3021:

@IeuanWalker
Copy link

+1 also experiencing this

@johnhydemtm365
Copy link

+1 Experiencing this

1 similar comment
@ericgrantholland
Copy link

+1 Experiencing this

@coop-tim
Copy link

After struggling with this myself for multiple days and slogging through misleading errors, fiddly/brittle config and red herring warnings, I thought it best to give back a working solution to the community.

This repo contains a fairly minimal working .NET 8 project targeting iOS and Android with Firebase Cloud Messaging, Analytics and the relevant build pipelines to get them built and pushed into App Center.

https://github.com/coop-tim/maui-sample

Hoping this helps whilst the root issues are worked on.

@rjhind
Copy link

rjhind commented Jan 11, 2024

Have you had any luck with Crashlytics? Since .Net 8, I'm not seeing any reports from iOS. Android working fine and iOS will report to AppCenter.

@coop-tim
Copy link

Have you had any luck with Crashlytics? Since .Net 8, I'm not seeing any reports from iOS. Android working fine and iOS will report to AppCenter.

I haven't tried, sorry

@Quaybe
Copy link

Quaybe commented Feb 27, 2024

It's unreal that this is even an issue. I'm experiencing this issue right now. Windows 10, latest version of .NET 8, Visual Studio, etc etc. Extremely frustrated. Nothing has helped.

@DerSeegler
Copy link

I had this issue, and it seems to have to do with the windows max path length.
So was able to fix this by moving the Nuget directory to C:/nuget. To do this add this path as a system environment variable under the name NUGET_PACKAGES.

@Quaybe
Copy link

Quaybe commented Mar 20, 2024

I had this issue, and it seems to have to do with the windows max path length. So was able to fix this by moving the Nuget directory to C:/nuget. To do this add this path as a system environment variable under the name NUGET_PACKAGES.

I've done this. My nuget path is C:\n. Still, the names are too long for some of the packages.

@williambuchanan2
Copy link
Author

I had this issue, and it seems to have to do with the windows max path length. So was able to fix this by moving the Nuget directory to C:/nuget. To do this add this path as a system environment variable under the name NUGET_PACKAGES.

I've done this. My nuget path is C:\n. Still, the names are too long for some of the packages.

I did the same and have the same problem. It works when deploying to Android but if I try to do an iOS build this problem comes back. I guess the paths for iOS build must be longer.

I have also turned on the 'long paths' setting in Windows but still happens.

@mizuhs
Copy link

mizuhs commented Mar 23, 2024

+1 experiencing this

I wish you gentlemen good luck

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants