插件,Firebase在App Store中的MAUI发布版本中导致无效二进制文件

toe95027  于 2023-04-22  发布在  其他
关注(0)|答案(1)|浏览(138)

我在App Store的发布版本中遇到了一个Invalid Binary问题。我有一个空的示例MAUI应用程序,其中包含以下软件包。
如果我从项目中删除Plugin.Firebase包,应用程序会上传并传递TestFlight。但是,当我添加Plugin. Firebase时。应用程序会从App Store中被拒绝,并返回Invalid Binary。它实际上不会传递TestFlight,并自动删除。
这是一个空的MAUI应用程序。该应用程序在Android上运行得非常好,因此在示例中,我只针对iOS。

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFrameworks>net7.0-ios</TargetFrameworks>
        <!--<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>-->
        <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
        <!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
        <OutputType>Exe</OutputType>
        <RootNamespace>MauiTestApp</RootNamespace>
        <UseMaui>true</UseMaui>
        <SingleProject>true</SingleProject>
        <ImplicitUsings>enable</ImplicitUsings>

        <!-- Display name -->
        <ApplicationTitle>MauiTestApp</ApplicationTitle>

        <!-- App Identifier -->
        <ApplicationId>com.azee.mauitestapp</ApplicationId>
        <ApplicationIdGuid>5570cff5-4abb-454f-971e-7106748a6a4d</ApplicationIdGuid>

        <!-- Versions -->
        <ApplicationDisplayVersion>1.0.9</ApplicationDisplayVersion>
        <ApplicationVersion>9</ApplicationVersion>

        <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'">
      <CreatePackage>false</CreatePackage>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-ios|AnyCPU'">
      <CreatePackage>false</CreatePackage>
      <CodesignProvision>Maui Test App</CodesignProvision>
      <CodesignKey>iPhone Distribution</CodesignKey>
      <CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>
    </PropertyGroup>
    <ItemGroup>
        <!-- App Icon -->
        <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />

        <!-- Splash Screen -->
        <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />

        <!-- Images -->
        <MauiImage Include="Resources\Images\*" />
        <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />

        <!-- Custom Fonts -->
        <MauiFont Include="Resources\Fonts\*" />

        <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
        <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
    </ItemGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
        <PackageReference Include="CommunityToolkit.Maui" Version="5.0.0" />
        <PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
        <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
        <PackageReference Include="Plugin.Firebase" Version="1.3.0" />
        <PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
        <PackageReference Include="SQLitePCLRaw.core" Version="2.1.4" />
        <PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.4" />
        <PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.4" />
        <PackageReference Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.4" />
        <PackageReference Include="Mopups" Version="1.1.1" />
        <PackageReference Include="Plugin.MediaManager" Version="1.2.2" />
        <PackageReference Include="Plugin.MediaManager.Forms" Version="1.2.2" />
    </ItemGroup>
    <ItemGroup>
      <BundleResource Include="GoogleService-Info.plist" />
    </ItemGroup>
</Project>

下面是没有GoogleService-Info-plist文件的repo

相关问题