Adding the wildcard
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios'">
<Content Remove="**\google-services.json" />
</ItemGroup>
Got past this error for me. It does not work with a forward slash, must use back slash to match windows pathing.