GoogleApisForiOSComponents icon indicating copy to clipboard operation
GoogleApisForiOSComponents copied to clipboard

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

Open williambuchanan2 opened this issue 2 years ago • 11 comments

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:

williambuchanan2 avatar Nov 30 '23 23:11 williambuchanan2

+1 also experiencing this

IeuanWalker avatar Dec 13 '23 18:12 IeuanWalker

+1 Experiencing this

johnhydemtm365 avatar Dec 21 '23 14:12 johnhydemtm365

+1 Experiencing this

ericgrantholland avatar Jan 08 '24 16:01 ericgrantholland

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.

coop-tim avatar Jan 11 '24 00:01 coop-tim

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.

rjhind avatar Jan 11 '24 07:01 rjhind

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

coop-tim avatar Jan 11 '24 08:01 coop-tim

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.

Quaybe avatar Feb 27 '24 14:02 Quaybe

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.

DerSeegler avatar Mar 20 '24 16:03 DerSeegler

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.

Quaybe avatar Mar 20 '24 20:03 Quaybe

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.

williambuchanan2 avatar Mar 20 '24 21:03 williambuchanan2

+1 experiencing this

I wish you gentlemen good luck

mizuhs avatar Mar 23 '24 02:03 mizuhs