xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

FILE PATH NAMES ARE TOO LONG!!! Could not copy the file C:\n\xamarin\firebase\ios\cloudfirestore\<excessively-long-path> #649

Open Quaybe opened 7 months ago

Quaybe commented 7 months ago

Please, for the love of whatever you believe in, shorten the file paths. I cannot publish my app at all once this package gets transitively included with Plugin.Firebase.

I have Windows long paths enabled which hasn't helped this issue, and I have my nuget's stored under C:\n, the shortest filepath possible. Yet I cannot build my app:

image

Firebase is a wonderful feature set, and I'd really love to use it.

Using .NET 8.0 with .NET MAUI. Cannot build, rebuild, or publish in VS due to this issue that shouldn't be an issue.

mizuhs commented 6 months ago

It's a shame how an entire plugin is rendered unusable because of something like file name length. @Quaybe have you found a better workaround that doesn't have to resort to building stuff through the console and disabling the iOS platform?

Quaybe commented 6 months ago

It's a shame how an entire plugin is rendered unusable because of something like file name length.

@Quaybe have you found a better workaround that doesn't have to resort to building stuff through the console and disabling the iOS platform?

After making those changes, I just can't use the rebuild or build options in VS. Basically it seems VS doesn't fully support the maxfilename registry change, but it partially does. So, I can debug (F5) the app and it builds and runs fine. I can also clean the project by right clicking on the project in VS.

But if I try to right click > Build or right click > rebuild, it fails with the file length issue. So for the last several weeks, I have just avoided doing that, and this has worked ok for me. If I absolutely need to, I will close it all out and do a "dotnet restore" from the command line.

I should also note though, that this issue prevents me from publishing the app in VS as well. So I have to do a roundabout way to publish and sign the app for Google Play store. So far I've only published for Android. I'm developing for iOS, but haven't gotten to the publish point yet.

mizuhs commented 6 months ago

Thanks, man. I guess I'll have to disable iOS for the time being and just hope for the best. Since it's a bindings thing I don't even think there's an alternative plugin or something that could be used in .NET MAUI instead of Plugin.Firebase.