TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
220 stars 49 forks source link

[Installation Issue]: Firebase.Analytics, Privacy Policy not found in .NET 8.0 Maui Project #338

Closed archergod closed 2 months ago

archergod commented 2 months ago

\net6.0-ios16.1\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64\FirebaseInstallations.framework\FirebaseInstallations_Privacy.bundle\PrivacyInfo.xcprivacy file is not found while installing in my .NET maui Mobile app for Android and ios (only)

AdamEssenmacher commented 2 months ago

Steps to reproduce or repro project? Environment details?

archergod commented 2 months ago

Randomly one of file don't get copied

image

archergod commented 2 months ago

Stack trace from Package Manager Output

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\archergod\.nuget\packages\adame.firebase.ios.crashlytics\10.24.0\lib\net6.0-ios16.1\Firebase.Crashlytics.resources\FirebaseCrashlytics.xcframework\ios-arm64\FirebaseCrashlytics.framework\Modules\FirebaseCrashlytics.swiftmodule\arm64-apple-ios.private.swiftinterface'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.IO.File.Create(String path)
   at NuGet.Packaging.StreamExtensions.Testable.MmapCopy(Stream inputStream, String fileFullPath, Int64 size)
   at NuGet.Packaging.StreamExtensions.Testable.CopyToFile(Stream inputStream, String fileFullPath)
   at NuGet.Packaging.PackageFileExtractor.ExtractPackageFile(String source, String target, Stream stream)
   at NuGet.Packaging.PackageArchiveReader.CopyFiles(String destination, IEnumerable`1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken token)
   at NuGet.Packaging.PackageReaderBase.CopyFilesAsync(String destination, IEnumerable`1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken cancellationToken)
   at NuGet.Packaging.PackageExtractor.<>c__DisplayClass5_0.<<InstallFromSourceAsync>b__0>d.MoveNext()
AdamEssenmacher commented 2 months ago

https://github.com/TobiasBuchholz/Plugin.Firebase?tab=readme-ov-file#windows-11-long-path-issue

https://github.com/AdamEssenmacher/GoogleApisForiOSComponents?tab=readme-ov-file#windows--visual-studio-long-path-issue

archergod commented 2 months ago

Okay thanks for information, So we cannot use this plugin when using Visual Studio because I once in past did get it install from Command line as suggested, but it fail during compilation. For some reason I thought it is fixed.

Time for new editor I guess.