Xamarin.Firebase.iOS.Analytics won't build in MAUI (VS 2022 Windows)
If I add a package reference to Xamarin.Firebase.iOS.Analytics (Version 6.9.0) and attempt to build in VS 2022 while paired to a mac and an emulator selected as the debug target (iPhone 13 Pro iOS 15.0), it throws an error:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.0.101-preview.10.251\targets\Xamarin.Shared.Sdk.targets(609,3): error MSB6006: "ditto" exited with code 1.
If I do the same with my iPhone set as the debug target, it throws the following error:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.0.101-preview.10.251\targets\Xamarin.Shared.Sdk.targets(1051,3): error : clang++ exited with code 1
If I plug my phone directly into my PC as a local device, these errors don't occur and the build is successful. I'm not sure if the analytics function though, since different errors related to libcore prevent me from actually logging in and performing authentication this way (though authentication itself works fine when using an emulator or if the phone is plugged into a mac and is being used as a remote device...and this Firebase Analytics nuget package isn't being used, of course).
I've manually added the GoogleService-Info.plist file to the csproj, since all the documentation I've ran across says the build action needs to be BundleResource, but that's not an option in the VS 2022 properties dropdown for the file.
<ItemGroup>
<BundleResource Include="Platforms\iOS\GoogleService-Info.plist" LogicalName="GoogleService-Info.plist" Condition="'$(TargetFramework)' == 'net6.0-ios'" />
</ItemGroup>
Additional Info
- I'm running Visual Studio 2022 Preview Version 17.1.0 Preview 1.1
- I'm running dotnet 6.0.100
yep guys the same issue, do we have solution?