Repository navigation
Xamarin.Firebase.iOS.Core 8.10.0.1 installation error #555
Description
Error Could not find a part of the path 'C:\Users\vivek.nuget\packages\xamarin.firebase.ios.core\8.10.0.1\lib\xamarinios10\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_i386_x86_64-simulator\GoogleUtilitiesComponents.framework\PrivateHeaders\GULCCComponentContainerInternal.h'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'GULCCComponentContainerInternal.h'.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at NuGet.Packaging.PackageExtractor.<>c__DisplayClass5_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Common.ConcurrencyUtilities.d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__51.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Packaging.PackageExtractor.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.ProjectRestoreCommand.d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.Commands.ProjectRestoreCommand.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.ProjectRestoreCommand.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreCommand.d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreCommand.d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreRunner.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreRunner.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.Commands.RestoreRunner.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.DependencyGraphRestoreUtility.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__73.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.d__30`1.MoveNext()
Activity
Mataboge commentedon Jun 2, 2022
I can confirm the issue
sambasile commentedon Jun 2, 2022
Seeing the issue on Windows 11. Path too long? Confirmed that changing my NUGET_PATH system environment variable on my computer allowed the package to install correctly. Refer to this as a temporary solution.
vivekscorp commentedon Jun 3, 2022
Hi sambasile, I can't find NUGET_PATH in my system environment variables and in the link you said to refer to. Please let me know in detail if possible.
Thanks
sambasile commentedon Jun 3, 2022
Hi vivekscorp. It is not there but by adding it, you can override the default value of
c:\users\_currentuser_\.nuget. In my case, I set the value to c:\Nugets which reduces the file path enough for the NuGet to install properly. I also enabled long file paths in my Group Policy. (see here) and changed the manifest of devenv.com as per the same document.tranb3r commentedon Jun 22, 2022
samb (@sambasile) How exactly do you change the manifest of devenv.com ?
Ruvi1996 commentedon Jun 24, 2022
I have the same issue
sambasile commentedon Jun 24, 2022
tranb3r my apologies, after reviewing I think I only changed the System Variable for the NuGet Packages
tranb3r commentedon Jul 4, 2022
I've changed my NUGET_PACAKGES path.
I'm still having this error:
Could not find a part of the path 'C:\Nuget\xamarin.firebase.ios.cloudfirestore\8.10.0.1\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_i386_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'Any help ?
Mataboge commentedon Jul 4, 2022
Here's what i did:
closed visual studio
in the Environment Variable, added a new path "C:\Nuget" to PATH (PATH already exists, edit and add new path)
added "C:\Nuget" to NUGET_PATH
added "C:\Nuget" to NUGET_PACKAGES
(one of these actually does the trick, dunno which one)
downloaded nuget.exe and moved it to the path C:\Nuget
opened command window
navigated to my project solution (cd ...)
ran command "nuget restore project.sln" (project.sln is the name of my solution)
NB: when ever you do a nuget clear, it will delete the nuget.exe, make sure to copy it back to the folder when you need to do a restore from the command line.
NB: if your restore does not restore and says all projects up to date, make sure to run a nuget clear all and move back the nuget.exe and do a restore again
Ruvi1996 commentedon Jul 4, 2022
Increasing the path length limitation (MAX_PATH) solved the issue for me.
Here’s how
tranb3r commentedon Jul 4, 2022
Well, even if I increase the MAX_PATH in the registry, change the NUGET_PACKAGES path to shorten it, use the latest nuget.exe to download packages from command-line, I still end up with this exception in VS:
And of course, the mentioned file DOES exist in the filesystem.
tranb3r commentedon Jul 19, 2022
Israel Soto (@SotoiGhost) I would really appreciate some help from the team... Thanks.
RSaundersInfo commentedon Jul 23, 2022
Getting the same error as tranb3r. My "C:\Nugets\xamarin.firebase.ios.cloudfirestore\8.10.0.1\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_i386_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb" folder is empty.
Edit: no errors installing the 8.10.0 build instead of the 8.10.0.1 build.
mikequ-taggysoft commentedon Jul 23, 2022
Is this going to be fixed on the source side with the next version (i.e., package maintainers shorten their strings)? Or we must manually change Nuget env variables etc to make this package work going forward? I'd hope it's the former case here.
Silv-1 commentedon Aug 4, 2022
Here is what fixed the issue for me
dotnet restore29 remaining items
khalil2099 commentedon Jan 21, 2024
i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.
BTSoft308 commentedon Jan 22, 2024
Unfortunately that also did not work for me
khalil2099 commentedon Jan 23, 2024
Are you doing for Android or iOS ?
BTSoft308 commentedon Jan 23, 2024
For both platforms
khalil2099 commentedon Jan 24, 2024
i finally got it working for both iOS and Android. what error did you get ? maybe i can help you.
BTSoft308 commentedon Jan 25, 2024
The same error caused by the too long path: "Could not copy the file 'C:\N\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h' because it was not found.". Not only for this particular file but along with another 260 files for the same plugin.
GiuseppeGiacalone commentedon Jan 25, 2024
On Windows 10 or 11? Can you share the steps you did?
BTSoft308 commentedon Jan 26, 2024
Windows 11, the project was originally in .net6 and everything was working fine, then I upgraded it to .net7 and it all began. The steps I followed were:
khalil2099 commentedon Jan 27, 2024
if u got 'client_load_reporting_filter.h' error, this is because temporary path is long. Go to Environment Variables, and change the temp folder to c:\temp or c:\t. Restart your computer after that. the original folder is in 'C:\Users<username>\AppData\Local\Temp\Xamarin'
once you changed that, in visual studio, go to Package Manager Console to build your project. You cant build using the GUI.
dotnet build --framework net8.0-android
dotnet build --framework net8.0-ios
after build from console, you can click on Debug. it will skip build.
SamuelBachar commentedon Jan 29, 2024
If nothing for you works you might try following (I have tried everything mentioned here and nothing helped me):
For anyone who have still problem with long paths (size bigger than 260 characters).
Check if problematic paths do contains your project name. If yes you can try to rename project name (sometimes multiple times project name is mentioned in path, make it shorter).
If bin or obj files are problem you can try to set them in properties of your project under Build -> Output configuration
Check if problematic path contains C:\Users\YourProfileName\AppData\Local\Temp... at the beginning, if yes there is DIRTY option to rename ENVIROMENTAL VARIABLE TEMP and TMP to something like C:\Test , BUT I needed to do RESTART of PC in order to stop copying into C:\Users\YourProfileName\AppData\Local\Temp\Xamarin\ .... this will save you certain amount of characters (BTW do backup of TEMP and TMP variables)
I don't know how much it can effect other stuff if you change those variables, but I got rid of issue with MAX_SIZE (Windows 11 looks like had still problem no matter what I did)
Combination of following might help you.
Hope it helps.
SamuelBachar commentedon Jan 29, 2024
That is only 243 characters. Could not be problem of something else ?
khalil2099 commentedon Jan 30, 2024
the long path problem is not because of windows (after you enable long path). It is because of visual studio itself. If you build using command prompt (dotnet build --framework net8.0-android), it can build without errors. current im using this method. but im having other new issue with Firebase. i cant receive notification on iOS version 17. version 15 is ok.
other expensive option you can try is to buy a mac, and use visual studio on mac. visual studio on mac doesnt have long path issue.
BTSoft308 commentedon Jan 30, 2024
Doing what Khalil said worked, now I got it to build also using the usual "right click - build". Unfortunately at this point I can't tell what "fixed" it, cause I've tried everything here and more. I've set both the project output and the nuget packages folders back to their original values, updated the project to .net8 (did a dotnet restore) and it built (to discover the buttons in my UI were not taking account of the styles) then downgraded back to .net7 (did a dotnet restore again) and it kept building. Thanks everybody for your help and support.
ts69repo commentedon Feb 18, 2024
I installed Google.MobileAds first and then the plugin would install
tuyen-vuduc commentedon Apr 4, 2024
It's still shown up in my Windows machine.