TobiasBuchholz / Plugin.Firebase

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

Can't add Plugin.Firebase having NET7 #270

Closed dankorhn closed 3 months ago

dankorhn commented 7 months ago

When I try to add appear this error: Severity Code Description Project File Line Suppression State Error Could not find a part of the path 'C:\Users\derh\nuget\packages\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\FirebaseInstallations-umbrella.h'.

Is no there available a versión for .net 7?

AdamEssenmacher commented 7 months ago

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

joshbartley commented 5 months ago

I found this answer very helpful and builds worked even after enabling long file paths because my project folder was too long with the project name https://stackoverflow.com/a/77845492

<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))=='false'"> $(TargetFrameworks);net8.0-ios</TargetFrameworks>
andyzukunft commented 5 months ago

How is this helpful? It seems the iOS target framework is only activated if you are NOT using a Windows computer. I doubt a very lot of people have a special macOS setup (Visual Studio for Mac, ...) just for iOS compilation.