Xamarin.forms: [バグ] UIWebViewAppleの非推奨2020年4月

作成日 2020年03月03日  ·  92コメント  ·  ソース: xamarin/Xamarin.Forms

この問題についてコメントする前に、次のコメントとドキュメントのリンクをお読みください

https://github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -625946175

そして、次の公式ドキュメントリンクを参照してください

https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/

https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16#help -with-uiwebview-deprecation

元の問題の説明

xamarinの4.5.0.356をインストールし、testflightを使用してiOSでアプリをリリースしました。 xamarinフォーム4.5を使用しており、ドキュメントにすべてのリンクを実装しています
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/webview?tabs=windows#uiwebview -deprecation-and-app-store-rejection-itms-90809

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/4.5/4.5.0

私はまだアップルからのメッセージを受け取ります:
「親愛なる開発者、

アプリの最近の配信「XXXXXXXX」3(46)で1つ以上の問題が特定されました。 配信は成功しましたが、次の配信で次の問題を修正することをお勧めします。

ITMS-90809:非推奨のAPIの使用-Appleは、2020年4月以降、UIWebViewAPIを使用するアプリの送信の受け付けを停止します。 詳細については、 https://developer.apple.com/documentation/uikit/uiwebviewを参照して

問題を修正したら、新しいバイナリをApp StoreConnectにアップロードできます。

宜しくお願いします、

AppStoreチーム」

誰かがこの問題を解決するのを手伝ってもらえますか?

これが私のcsprojです

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{XXXXXXXXXXXXXXXXXXXXXXXXXXXXX}</ProjectGuid>
    <ProjectTypeGuids>{XXXXXXXXXXXXXXXXXX};{XXXXXXXXXXXXXXXXXXXXX}</ProjectTypeGuids>
    <TemplateGuid>{XXXXXXXXXXXXXXXXXXXXXXXXXXXX}</TemplateGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>Agenda.iOS</RootNamespace>
    <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
    <AssemblyName>Agenda.iOS</AssemblyName>
    <MtouchEnableSGenConc>true</MtouchEnableSGenConc>
    <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
    <DefineConstants>DEBUG</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchArch>x86_64</MtouchArch>
    <MtouchLink>None</MtouchLink>
    <MtouchDebug>true</MtouchDebug>
    <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
    <DebugType>none</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchLink>Full</MtouchLink>
    <MtouchArch>x86_64</MtouchArch>
    <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\iPhone\Debug</OutputPath>
    <DefineConstants>DEBUG</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchArch>ARM64</MtouchArch>
    <CodesignKey>iPhone Developer</CodesignKey>
    <MtouchDebug>true</MtouchDebug>
    <CodesignEntitlements>
    </CodesignEntitlements>
    <CodesignProvision>
    </CodesignProvision>
    <IOSDebugOverWiFi>true</IOSDebugOverWiFi>
    <CodesignExtraArgs />
    <CodesignResourceRules />
    <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
    <DebugType>none</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\iPhone\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchArch>ARM64</MtouchArch>
    <CodesignKey>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</CodesignKey>
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
    <CodesignProvision>Agenda Distribution</CodesignProvision>
    <BuildIpa>true</BuildIpa>
    <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
    <AppExtensionDebugBundleId />
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Main.cs" />
    <Compile Include="AppDelegate.cs" />
    <None Include="Entitlements.plist" />
    <BundleResource Include="GoogleService-Info.plist" />
    <None Include="Info.plist" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Core" />
    <Reference Include="Xamarin.iOS" />
    <Reference Include="System.Numerics" />
    <Reference Include="System.Numerics.Vectors" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Firebase.iOS.CloudMessaging">
      <Version>3.1.2</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
    <PackageReference Include="Xamarin.Essentials" Version="1.5.0" />
    <PackageReference Include="Xamarin.Forms.Visual.Material">
      <Version>4.5.0.356</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.IQKeyboardManager">
      <Version>1.4.1</Version>
    </PackageReference>
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
  <ItemGroup>
    <ProjectReference Include="..\Agenda\Agenda.csproj">
      <Project>{XXXXXXXXXXXXXXXXXXXXXXXXX}</Project>
      <Name>Agenda</Name>
    </ProjectReference>
  </ItemGroup>
  <ProjectExtensions>
    <VisualStudio>
      <UserProperties XamarinHotReloadWrongLinkerErrorInfoBarAgendaiOSHideInfoBar="True" />
    </VisualStudio>
  </ProjectExtensions>
</Project>
needs-info ❓ unverified bug

最も参考になるコメント

わかりました、修正しました。 これが私の手順でした。

ネットワーク経由でオンラインで接続されたmac-miniを使用して、win10のビジュアルスタジオ上に構築します。 手順は次のとおりです。

  • 「bin / objdance」
  • プロジェクトからXamarin.Visual.Material.Designをアンインストールします
  • 「bin / objdance」
  • Xamarin.iOS.MaterialComponents不安定バージョン92.0.0-rc2をインストールします
  • Xamarin.Visual.Material.Design4.5.0.356をインストールします

唯一の問題はそのコンポーネントでした。 Firebaseクラウドメッセージングは​​問題ではありませんでした。 助けてくれてありがとう。

全てのコメント92件

@EdoardoCinelliリリース| iPhone構成のリンカー動作を「SDKのみ」または「すべてリンク」に設定していますか?

私もリンクをたどりましたが、まだそのメッセージが表示されています。 以下は、私のアプリのcs.projでもあります。 リンカーはリンクフレームワークSDKのみに設定されており、mtouch引数に「--optimize = experimental-xforms-product-type」を追加しました。

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform> <ProductVersion>8.0.30703</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{7FE56767-FBA2-4515-AD06-03F538621686}</ProjectGuid> <ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <OutputType>Exe</OutputType> <RootNamespace>VisitPikeville2.iOS</RootNamespace> <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix> <AssemblyName>VisitPikeville2.iOS</AssemblyName> <NuGetPackageImportStamp> </NuGetPackageImportStamp> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\iPhoneSimulator\Debug</OutputPath> <DefineConstants>DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>false</ConsolePause> <MtouchArch>i386, x86_64</MtouchArch> <MtouchLink>None</MtouchLink> <MtouchDebug>true</MtouchDebug> <CodesignProvision>Visit Pikeville City App Development</CodesignProvision> <CodesignKey>iPhone Developer: Michael harrison (R52P7U9CKM)</CodesignKey> <LangVersion>default</LangVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> <DebugType>none</DebugType> <Optimize>true</Optimize> <OutputPath>bin\iPhoneSimulator\Release</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <MtouchLink>SdkOnly</MtouchLink> <MtouchArch>i386, x86_64</MtouchArch> <ConsolePause>false</ConsolePause> <CodesignProvision>Visit Pikeville City App</CodesignProvision> <CodesignKey>iPhone Distribution: Bit Source, LLC (75D68EY2Q2)</CodesignKey> <LangVersion>default</LangVersion> <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\iPhone\Debug</OutputPath> <DefineConstants>DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>false</ConsolePause> <MtouchArch>ARM64</MtouchArch> <CodesignKey>iPhone Developer: Michael harrison (R52P7U9CKM)</CodesignKey> <MtouchDebug>true</MtouchDebug> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <CodesignProvision>Visit Pikeville City App Development</CodesignProvision> <MtouchLink>None</MtouchLink> <DeviceSpecificBuild>false</DeviceSpecificBuild> <LangVersion>default</LangVersion> <MtouchInterpreter>-all</MtouchInterpreter> <IntermediateOutputPath></IntermediateOutputPath> <MtouchVerbosity></MtouchVerbosity> <IOSDebuggerPort></IOSDebuggerPort> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>none</DebugType> <Optimize>true</Optimize> <OutputPath>bin\iPhone\Release</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <MtouchArch>ARM64</MtouchArch> <ConsolePause>false</ConsolePause> <CodesignKey>iPhone Distribution: Bit Source, LLC (75D68EY2Q2)</CodesignKey> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <CodesignProvision>Visit Pikeville City App</CodesignProvision> <MtouchLink>SdkOnly</MtouchLink> <LangVersion>default</LangVersion> <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs> <DeviceSpecificBuild>true</DeviceSpecificBuild> <MtouchEnableSGenConc>true</MtouchEnableSGenConc> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' "> <DebugType>none</DebugType> <Optimize>True</Optimize> <OutputPath>bin\iPhone\Ad-Hoc</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>False</ConsolePause> <MtouchArch>ARM64</MtouchArch> <BuildIpa>True</BuildIpa> <CodesignProvision>VS: WildCard Development</CodesignProvision> <CodesignKey>iPhone Developer: Michael harrison (R52P7U9CKM)</CodesignKey> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <LangVersion>default</LangVersion> <MtouchLink></MtouchLink> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' "> <DebugType>none</DebugType> <Optimize>True</Optimize> <OutputPath>bin\iPhone\AppStore</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>False</ConsolePause> <MtouchArch>ARM64</MtouchArch> <CodesignProvision>Visit Pikeville City App</CodesignProvision> <CodesignKey>iPhone Distribution: Bit Source, LLC (75D68EY2Q2)</CodesignKey> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <LangVersion>default</LangVersion> <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs> </PropertyGroup> <ItemGroup> <Compile Include="Main.cs" /> <Compile Include="AppDelegate.cs" /> <None Include="Entitlements.plist" /> <None Include="Info.plist" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Services\IosThemeChecker.cs" /> </ItemGroup> <ItemGroup> <ImageAsset Include="Assets.xcassets\Contents.json"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\[email protected]"> <Visible>false</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\60 x 60.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\87.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\80.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120-1.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\180 x 180.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\1024.png" /> <ImageAsset Include="Assets.xcassets\home.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\MapIcon.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\MapIcon.imageset\MapIcon%403x.png" /> <ImageAsset Include="Assets.xcassets\MapIcon.imageset\MapIcon%402x.png" /> <ImageAsset Include="Assets.xcassets\MapIcon.imageset\MapIcon.png" /> <ImageAsset Include="Assets.xcassets\wifi.imageset\wifi%403x.png" /> <ImageAsset Include="Assets.xcassets\wifi.imageset\wifi%402x.png" /> <ImageAsset Include="Assets.xcassets\wifi.imageset\wifi.png" /> <ImageAsset Include="Assets.xcassets\wifi.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\contactCall.imageset\contactCall%403x.png" /> <ImageAsset Include="Assets.xcassets\contactCall.imageset\contactCall%402x.png" /> <ImageAsset Include="Assets.xcassets\contactCall.imageset\contactCall.png" /> <ImageAsset Include="Assets.xcassets\contactCall.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\contactEmail.imageset\contactEmail%403x.png" /> <ImageAsset Include="Assets.xcassets\contactEmail.imageset\contactEmail%402x.png" /> <ImageAsset Include="Assets.xcassets\contactEmail.imageset\contactEmail.png" /> <ImageAsset Include="Assets.xcassets\contactEmail.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\Gradient.imageset\Gradient%403x.png" /> <ImageAsset Include="Assets.xcassets\Gradient.imageset\Gradient%402x.png" /> <ImageAsset Include="Assets.xcassets\Gradient.imageset\Gradient.png" /> <ImageAsset Include="Assets.xcassets\Gradient.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\contact.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\home.imageset\whitehome30.png" /> <ImageAsset Include="Assets.xcassets\home.imageset\whitehome60.png" /> <ImageAsset Include="Assets.xcassets\home.imageset\whitehome90.png" /> <ImageAsset Include="Assets.xcassets\contact.imageset\whitephone30-1.png" /> <ImageAsset Include="Assets.xcassets\contact.imageset\whitephone60-1.png" /> <ImageAsset Include="Assets.xcassets\contact.imageset\whitephone90-1.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1125 X 2436.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1242 X 2688.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1792 X 828.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1920 X 1080 PX.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1920 X 1080 PX%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\2436 X 1125.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\2688 X 1242.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\320 X 480 PX.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\320 X 480 PX%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\640 X 1136 PX.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\640 X 1136 PX-1.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\640 X 960 PX.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\828 X 1792.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\Contents.json" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\Default-Portrait.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\Default-Portrait%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPhone 8, 9 - 1242 X 2208.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPhone 8,9 7- 750 X 1334.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPhone Landscape 2208 X 1242.png" /> <ImageAsset Include="Assets.xcassets\PoiUrl.imageset\PoiUrl%403x.png" /> <ImageAsset Include="Assets.xcassets\PoiUrl.imageset\PoiUrl%402x.png" /> <ImageAsset Include="Assets.xcassets\PoiUrl.imageset\PoiUrl.png" /> <ImageAsset Include="Assets.xcassets\PoiUrl.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-20x20%401x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-20x20%402x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-29x29%401x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-29x29%402x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-20x20%402x-1.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-40x40%402x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-76x76%401x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-76x76%402x.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-83.5%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\12.9” iPad Pro 2048 X 2732.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 768x1024.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 768x1024%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 1024x768.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 1024x768%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\768 X 1004.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\768 X 1004%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 768x1024-1.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 768x1024%402x-1.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1024 X 748.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\1024 X 748%402x.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 1024x768-1.png" /> <ImageAsset Include="Assets.xcassets\UpdatedLaunchImage.launchimage\iPad 1024x768%402x-1.png" /> <ImageAsset Include="Assets.xcassets\loadUp.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AnnoucementHorn.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\Holiday.imageset\Holiday%403x.png" /> <ImageAsset Include="Assets.xcassets\Holiday.imageset\Holiday%402x.png" /> <ImageAsset Include="Assets.xcassets\Holiday.imageset\Holiday.png" /> <ImageAsset Include="Assets.xcassets\Holiday.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\Attention.imageset\Attention%403x.png" /> <ImageAsset Include="Assets.xcassets\Attention.imageset\Attention%402x.png" /> <ImageAsset Include="Assets.xcassets\Attention.imageset\Attention.png" /> <ImageAsset Include="Assets.xcassets\Attention.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\Weather.imageset\Weather%403x.png" /> <ImageAsset Include="Assets.xcassets\Weather.imageset\Weather%402x.png" /> <ImageAsset Include="Assets.xcassets\Weather.imageset\Weather.png" /> <ImageAsset Include="Assets.xcassets\Weather.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AnnoucementHorn.imageset\Vector.png" /> <ImageAsset Include="Assets.xcassets\AnnoucementHorn.imageset\Vector %281%29.png" /> <ImageAsset Include="Assets.xcassets\AnnoucementHorn.imageset\Vector %282%29.png" /> <ImageAsset Include="Assets.xcassets\ConstructionImage.imageset\ConstructionImage%403x.png" /> <ImageAsset Include="Assets.xcassets\ConstructionImage.imageset\ConstructionImage%402x.png" /> <ImageAsset Include="Assets.xcassets\ConstructionImage.imageset\ConstructionImage.png" /> <ImageAsset Include="Assets.xcassets\ConstructionImage.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\FeedIcon.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\AddPostBtn.imageset\AddPostBtn%403x.png" /> <ImageAsset Include="Assets.xcassets\AddPostBtn.imageset\AddPostBtn%402x.png" /> <ImageAsset Include="Assets.xcassets\AddPostBtn.imageset\AddPostBtn.png" /> <ImageAsset Include="Assets.xcassets\AddPostBtn.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\FeedIcon.imageset\feed30.png" /> <ImageAsset Include="Assets.xcassets\FeedIcon.imageset\feed60.png" /> <ImageAsset Include="Assets.xcassets\FeedIcon.imageset\feed90.png" /> <ImageAsset Include="Assets.xcassets\UploadImage.imageset\UploadImage%403x.png" /> <ImageAsset Include="Assets.xcassets\UploadImage.imageset\UploadImage%402x.png" /> <ImageAsset Include="Assets.xcassets\UploadImage.imageset\UploadImage.png" /> <ImageAsset Include="Assets.xcassets\UploadImage.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\DeleteImage.imageset\DeleteImage%403x.png" /> <ImageAsset Include="Assets.xcassets\DeleteImage.imageset\DeleteImage%402x.png" /> <ImageAsset Include="Assets.xcassets\DeleteImage.imageset\DeleteImage.png" /> <ImageAsset Include="Assets.xcassets\DeleteImage.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\CloseImg.imageset\CloseImg%403x.png" /> <ImageAsset Include="Assets.xcassets\CloseImg.imageset\CloseImg%402x.png" /> <ImageAsset Include="Assets.xcassets\CloseImg.imageset\CloseImg.png" /> <ImageAsset Include="Assets.xcassets\CloseImg.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> <ImageAsset Include="Assets.xcassets\PublishImg.imageset\PublishImg%403x.png" /> <ImageAsset Include="Assets.xcassets\PublishImg.imageset\PublishImg%402x.png" /> <ImageAsset Include="Assets.xcassets\PublishImg.imageset\PublishImg.png" /> <ImageAsset Include="Assets.xcassets\PublishImg.imageset\Contents.json"> <Visible>False</Visible> </ImageAsset> </ItemGroup> <ItemGroup> <BundleResource Include="Resources\Logo.png" /> <BundleResource Include="Resources\share.png" /> <BundleResource Include="Resources\share%402x.png" /> <BundleResource Include="Resources\tickets%403x.png" /> <BundleResource Include="Resources\tickets%402x.png" /> <BundleResource Include="Resources\tickets.png" /> <BundleResource Include="GoogleService-Info.plist" /> <InterfaceDefinition Include="LaunchScreen.storyboard" /> </ItemGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="System.Core" /> <Reference Include="Xamarin.iOS" /> </ItemGroup> <ItemGroup> <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" /> <PackageReference Include="Prism.DryIoc.Forms" Version="7.2.0.1422" /> <PackageReference Include="Xamarin.Essentials"> <Version>1.5.0</Version> </PackageReference> <PackageReference Include="Newtonsoft.Json"> <Version>12.0.3</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.Visual.Material"> <Version>4.5.0.356</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.PancakeView"> <Version>1.3.7</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.GoogleMaps"> <Version>3.3.0</Version> </PackageReference> <PackageReference Include="Xamarin.FFImageLoading.Forms"> <Version>2.4.11.982</Version> </PackageReference> <PackageReference Include="Plugin.FirebasePushNotification"> <Version>2.3.6</Version> </PackageReference> <PackageReference Include="Xamarin.Plugin.Calendar"> <Version>1.0.3.200</Version> </PackageReference> <PackageReference Include="Microsoft.AppCenter.Crashes"> <Version>3.0.0</Version> </PackageReference> <PackageReference Include="Xamarin.Essentials.Interfaces"> <Version>1.5.0</Version> </PackageReference> <PackageReference Include="Xam.Plugin.Media"> <Version>4.0.1.5</Version> </PackageReference> <PackageReference Include="Plugin.Permissions"> <Version>3.0.0.12</Version> </PackageReference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\VisitPikeville2\VisitPikeville2.csproj"> <Project>{7419ED46-B3A3-4BE1-8AC9-60582F43BB63}</Project> <Name>VisitPikeville2</Name> </ProjectReference> </ItemGroup> <ItemGroup> <ITunesArtwork Include="iTunesArtwork%402x" /> <ITunesArtwork Include="iTunesArtwork" /> </ItemGroup> <ItemGroup> <Folder Include="Assets.xcassets\UpdatedLaunchImage.launchimage\" /> <Folder Include="Services\" /> </ItemGroup> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> </Project>

@mharrisonbit私は@hartezが述べたように同じことがあなたに当てはまると思います。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">ビットに次のタグを追加してください: <MtouchLink>Full</MtouchLink> 。 UIからiOSプロジェクトのプロパティに移動し、 iOSビルドブレードに移動して、リンカーの動作が[すべてリンク]または[ SDKのみ]に設定されていることを確認することもできます。以下を参照してください。

image

もちろん、正しいビルド構成のためにそれを行うことを確認してください、そのために画面の上部にあるコンボボックスを使用してください

私は両方を試しましたが、まだアップルからのメールを受信して​​います。
どうすれば修正できますか?

これの1つにuiwebviewへの参照を含めることができますか?

 <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Firebase.iOS.CloudMessaging">
      <Version>3.1.2</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
    <PackageReference Include="Xamarin.Essentials" Version="1.5.0" />
    <PackageReference Include="Xamarin.Forms.Visual.Material">
      <Version>4.5.0.356</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.IQKeyboardManager">
      <Version>1.4.1</Version>
    </PackageReference>

@EdoardoCinelli FirebaseがUIWebViewを参照していて、それに取り組んでいるようです: https

@mharrisonbitは、他のものを更新するためだけのものです。 オフラインで少しおしゃべりしました。適切なバージョンと設定がすべて揃っているようですが、それでも機能しないようです。 すでにNuGetsのリストも送ってくれましたが、ここに追加していただけませんか? そのため、問題を引き起こす可能性のあるものがそこにあるかどうかを確認できます。

こんにちは!

同じ問題があります。 @jfversluisとメールで少しおしゃべりしましたが、ここで続けます。

これが役立つ場合のNuGetのリストです。

AsyncAwaitBestPractices Version 4.1.0
AutoMapper Version 9.0.0
JetBrains.Annotations Version 2019.1.3
Microsoft.Identity.Client Version 4.8.2
Mobile.BuildTools Version 1.4.0.638
NLog.Targets.AppCenter Version 1.1.0
PCLCrypto Version 2.0.147
Plugin.BackgroundService Version 2.1.2340
Plugin.Permissions Version 5.0.0-beta
Plugin.PushNotification Version 3.1.1
Portable.BouncyCastle Version 1.8.6
Prism.Plugin.Popups Version 7.2.0.759
ReactiveUI Version 11.2.1
ReactiveUI.Fody Version 11.2.1
ReactiveUI.XamForms Version 11.2.1
Rg.Plugins.Popup Version 1.2.0.223
Xam.Plugin.Geolocator Version 4.6.2-beta
Xam.Plugin.Media Version 4.4.10-beta
Xam.Plugin.SimpleAudioPlayer Version 1.4.0
Xamarin.Azure.NotificationHubs.iOS Version 2.0.4
Xamarin.Essentials Version 1.5.0
Xamarin.FFImageLoading Version 2.4.11.982
Xamarin.FFImageLoading.Forms Version 2.4.11.982
Xamarin.FFImageLoading.Svg.Forms Version 2.4.11.982
Xamarin.FFImageLoading.Transformations Version 2.4.11.982
Xamarin.Forms Version 4.5.0.356
Prism.Unity.Forms Version 7.2.0.1422
Xamarin.Forms.Visual.Material Version 4.5.0.356
Microsoft.AppCenter.Crashes Version 3.0.0
Microsoft.AppCenter.Analytics Version 3.0.0
Microsoft.AppCenter Version 3.0.0
ZXing.Net.Mobile Version 2.4.1
ZXing.Net.Mobile.Forms Version 2.4.1
NLog Version 4.6.8

AppCenterを使用してテストフライトでビルドおよび公開しています。 私は前にそれを書きませんでした。 コードとNuGetからすべてのFirebase参照を削除しましたが、まだメールを受信して​​います。 AppCenterは問題ですか?

@EdoardoCinelli App Centerでビルド構成を確認できますか?

image

アプリをビルドするためにXamarin.iOS13.10バージョンを選択していることを確認してください

setting1
setting2
これは私のセットアップです

@jfversluisは、私がiOSプロジェクトで使用しているnugetsです。これが、何かを理解するのに役立つことを願っています。 もう一度、助けてくれたみんなに感謝します。 また、これはすべて私のローカルにアーカイブされてから、プレイストアにプッシュされています。
<ItemGroup> <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" /> <PackageReference Include="Prism.DryIoc.Forms" Version="7.2.0.1422" /> <PackageReference Include="Xamarin.Essentials"> <Version>1.5.0</Version> </PackageReference> <PackageReference Include="Newtonsoft.Json"> <Version>12.0.3</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.Visual.Material"> <Version>4.5.0.356</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.PancakeView"> <Version>1.3.7</Version> </PackageReference> <PackageReference Include="Xamarin.Forms.GoogleMaps"> <Version>3.3.0</Version> </PackageReference> <PackageReference Include="Xamarin.FFImageLoading.Forms"> <Version>2.4.11.982</Version> </PackageReference> <PackageReference Include="Plugin.FirebasePushNotification"> <Version>2.3.6</Version> </PackageReference> <PackageReference Include="Xamarin.Plugin.Calendar"> <Version>1.0.3.200</Version> </PackageReference> <PackageReference Include="Microsoft.AppCenter.Crashes"> <Version>3.0.0</Version> </PackageReference> <PackageReference Include="Xamarin.Essentials.Interfaces"> <Version>1.5.0</Version> </PackageReference> <PackageReference Include="Xam.Plugin.Media"> <Version>4.0.1.5</Version> </PackageReference> </ItemGroup>

@jfversluisは、私たちが使用しているNuGetsです。

<PackageReference Include="DLToolkit.Forms.Controls.ImageCropView" Version="1.0.7" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.8.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Plugin.InAppBilling" Version="2.0.0" />
<PackageReference Include="Plugin.StoreReview" Version="2.0.0.5" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
<PackageReference Include="Telerik.UI.for.Xamarin" Version="2020.1.218.1" />
<PackageReference Include="Xam.Plugin.Media" Version="4.0.1.5" />
<PackageReference Include="Xam.Plugins.Forms.KeyboardOverlap"/>  
<PackageReference Include="Xamarin.Azure.NotificationHubs.iOS-updated"/>
<PackageReference Include="Xamarin.Essentials" Version="1.5.0" />
<PackageReference Include="Xamarin.FFImageLoading" Version="2.4.6.929" />
<PackageReference Include="Xamarin.FFImageLoading.Forms" Version="2.4.6.929" />
<PackageReference Include="Xamarin.FFImageLoading.Transformations" Version="2.4.6.929" />
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Xamarin.Forms.InputKit" Version="3.2.1" />
<PackageReference Include="Xamarin.Forms.RangeSlider" Version="1.0.2" />
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="3.0.0" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="3.0.0" />

あなたの数はに依存するマテリアルのビジュアルを使用しているようにさてさて、それは見えMaterialComponentsを。 最新の安定バージョンは72.2.0.1ですが、この問題https://github.com/xamarin/XamarinComponents/issues/745に遭遇しましたUIWebViewへの参照が92.0.0-rc1でのみ削除されることを示しています。 。

プロジェクトで実際にマテリアルを使用しているかどうかを確認してください。 そうでない場合は、参照を削除するか、92.0.0-rc1(またはrc2)をプロジェクトに手動で追加して、それが修正されるかどうかを確認してください。

Azure DevOpsで(また)ビルドしている人は、Xamarin.iOS13.10に対してビルドしていない可能性があることに注意してください。 ログをチェックして、 experimental-xforms-product-typeフラグが有効ではないことを示す出力があるかどうかを確認します。 その出力が表示された場合は、古いバージョンのXamarin.iOSに対してビルドしています。

Azure DevOpsにあるものについては、下のリンクをたどり、Monoバージョンを6_6_1に設定します。これは、Xamarin.iOS13.10に対してビルドされます。

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#how -can-i-manually-select-versions-of-tools-on-the- hosted-macos-agent

また、Appcenterなしで、firebase、webview、xamarinマテリアル、xamarin Essentialなしでテストされましたが、まだメールを受信して​​います。 誰かが何が起こっているのか教えてもらえますか? 参照があるかどうかを確認するにはどうすればよいですか?

Xamarin.Forms.Visual.Materialを削除しようとしましたが、それでもメールを受信しました。

これらは私たちが使用しているNuGetsです:

<ItemGroup>
    <PackageReference Include="BruTile">
      <Version>1.0.0</Version>
    </PackageReference>
    <PackageReference Include="Com.OneSignal">
      <Version>3.7.3</Version>
    </PackageReference>
    <PackageReference Include="dotMorten.Xamarin.Forms.AutoSuggestBox">
      <Version>1.0.0</Version>
    </PackageReference>
    <PackageReference Include="ImageCropper.Forms">
      <Version>0.1.6</Version>
    </PackageReference>
    <PackageReference Include="Mapsui">
      <Version>1.4.8</Version>
    </PackageReference>
    <PackageReference Include="Mapsui.Forms">
      <Version>0.2.1</Version>
    </PackageReference>
    <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="PolylineEncoder.Net">
      <Version>1.0.1</Version>
    </PackageReference>
    <PackageReference Include="sqlite-net-pcl">
      <Version>1.6.292</Version>
    </PackageReference>
    <PackageReference Include="Xam.Plugin.DeviceInfo">
      <Version>4.1.1</Version>
    </PackageReference>
    <PackageReference Include="Xam.Plugin.Media">
      <Version>4.0.1.5</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Essentials">
      <Version>1.5.0</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
    <PackageReference Include="Xamarin.Forms.Extended.InfiniteScrolling">
      <Version>1.0.0-preview2</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.IQKeyboardManager">
      <Version>1.4.1</Version>
    </PackageReference>
  </ItemGroup>

@Flaviocrtt nugetを削除した後、必ず「bin / objdance」を実行してください。 プロジェクトからbinおよびobjフォルダーを削除し、完全な再構築を行って、キャッシュされたものがそこに詰まらないようにしてください。

また、どのようにアプリを構築していますか? Azure DevOps、App Center、手動? 適切な設定がすべて整っていると確信していますか?

ビルドを作成したばかりで、そのメッセージが表示されませんでした。参照されているnugetパッケージに変更を加えなかったため、要求されたいくつかの設計変更のみが行われました。

@mharrisonbit 「デザイン変更」とはどういう意味ですか?

いくつかのビューでは、大きな変更はありません。 ビューに要素(ラベル、ボタンなど)を追加または削除しませんでした。

OK、それは...奇妙です。 たぶん、このビルドのために突然いくつかのビットが所定の位置に落ちて、適切なバイナリを取得しましたか? とにかく、それが解決されたのを見てうれしいです! :)

私は自分の運がいかにあるかを知っています、そしてこれはたった一度のことでした。 笑私はすべてがちょうどうまくいったことを願っています、そして私はこれから先に行くのは良いことです。 みんなの助けに感謝します。

@jfversluis動作し、Xamarin.Forms.Visual.Materialを削除し、ソリューションをクリーンアップし、binフォルダーとobjフォルダーを削除し、さらにVisualStudioとmacMiniを保証付きで再起動しました。
Macminiに接続されたWindows用のVisualStudioプレビューを使用して手動でビルドします。
実際、ビジュアルマテリアルが必要です。アプリに再度インストールします。アップルがアプリを拒否し始めた場合、マテリアルなしで送信できることを知っています。
必要な修正を加えてビジュアル素材を更新する予定はありますか?
ありがとう!

素晴らしい@Flaviocrtt! 知らせてくれてありがとう!

重要なものの更新はすでに進行中であると思います。 今すぐ使用する場合は、もう一度インストールしますが、iOSプロジェクトのMaterialComponentsNuGetを最新のプレリリースに更新します。 再びすべてのbinとobjのものをクリーンアップしますが、それは機能するはずであり、マテリアルを使用しましょう:)

@EdoardoCinelliは、ほとんどの人がここでそれを機能させるようにしたようですが、あなたもそうしましたか?

わかりました、修正しました。 これが私の手順でした。

ネットワーク経由でオンラインで接続されたmac-miniを使用して、win10のビジュアルスタジオ上に構築します。 手順は次のとおりです。

  • 「bin / objdance」
  • プロジェクトからXamarin.Visual.Material.Designをアンインストールします
  • 「bin / objdance」
  • Xamarin.iOS.MaterialComponents不安定バージョン92.0.0-rc2をインストールします
  • Xamarin.Visual.Material.Design4.5.0.356をインストールします

唯一の問題はそのコンポーネントでした。 Firebaseクラウドメッセージングは​​問題ではありませんでした。 助けてくれてありがとう。

こんにちは@jfversluis私もこの問題を抱えています、私はマテリアルコンポーネントを使用していません。
これは私のビルド構成です-私はAppCenterを使用してIpaファイルをビルドします。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
    <DebugType>none</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\iPhone\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchArch>ARM64</MtouchArch>
    <CodesignKey>XXX</CodesignKey>
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
    <CodesignProvision>Automatic:AppStore</CodesignProvision>
    <MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
    <MtouchLink>Full</MtouchLink>
  </PropertyGroup>

nugetパッケージのリスト:

<ItemGroup>
    <PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
    <PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
    <PackageReference Include="sqlite-net-pcl">
      <Version>1.6.292</Version>
    </PackageReference>
    <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="Com.Airbnb.Xamarin.Forms.Lottie">
      <Version>3.0.3</Version>
    </PackageReference>
    <PackageReference Include="SkiaSharp">
      <Version>1.68.0</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.FFImageLoading">
      <Version>2.4.11.982</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.FFImageLoading.Forms">
      <Version>2.4.11.982</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.FFImageLoading.Svg">
      <Version>2.4.11.982</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.FFImageLoading.Svg.Forms">
      <Version>2.4.11.982</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.FFImageLoading.Transformations">
      <Version>2.4.11.982</Version>
    </PackageReference>
    <PackageReference Include="Xam.Plugins.Settings">
      <Version>3.1.1</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Google.iOS.MobileAds">
      <Version>7.47.0</Version>
    </PackageReference>
    <PackageReference Include="Plugin.InAppBilling">
      <Version>2.0.0</Version>
    </PackageReference>
    <PackageReference Include="Xam.Plugin.HtmlLabel">
      <Version>3.0.2.2</Version>
    </PackageReference>
    <PackageReference Include="Xam.Plugins.Forms.ProgressRing">
      <Version>0.1.2</Version>
    </PackageReference>
    <PackageReference Include="Acr.UserDialogs">
      <Version>7.1.0.440</Version>
    </PackageReference>
    <PackageReference Include="MarcTron.Admob">
      <Version>1.4.5</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Google.iOS.SignIn">
      <Version>4.4.0</Version>
    </PackageReference>
  </ItemGroup>

App Centerビルド構成:
image

アドバイスをお願いします。

@vunhutienは、広告に関係するプラグインをアップグレードしようとします。 これは、Webビューを参照する可能性が高いパッケージのようです

@jfversluisに感謝し

@vunhutienは、この問題が原因である可能性があるようです: https

@vunhutienは、この問題が原因である可能性があるようです: xamarin / GoogleApisForiOSComponents#380

本当にありがとう。

@ rdev24608要件である4.5安定パッケージを使用していないようです

@ rdev24608

これを試して
https://github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -594758733

それでも機能しない場合、例外は何ですか?

例外?

* .ipaファイル、 cdを解凍したディレクトリに解凍してUIWebViewへの参照が含まれているパッケージを確認し、ターミナルからgrep -lr "UIWebView" .してみてください。

こんにちは@abrari 、私のパッケージは示しました:/Frameworks/PersonalizedAdConsent.framework/PersonalizedAdConsent
私はそれをグーグルアドリブから推測しますよね?

こんにちは@jfversluis私もこの問題を抱えています。Xamarin.Forms4.5.0.495とXamarin.iOS13.14.1.39に更新しました。 また、ブログに記載されているのとまったく同じ構成を行いましたが、それでも警告メッセージが表示されます。 これは私のプロジェクト構成であり、UIWebViewへのこの参照の原因がまだわからないため、nugetパッケージのリストです。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchArch>ARM64</MtouchArch>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignEntitlements>
</CodesignEntitlements>
<MtouchEnableSGenConc>true</MtouchEnableSGenConc>
<CodesignProvision>x</CodesignProvision>
<BuildIpa>true</BuildIpa>
<IpaPackageName>x</IpaPackageName>
<MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>
<MtouchUseLlvm>true</MtouchUseLlvm>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Acr.UserDialogs">
<Version>7.1.0.442</Version>
</PackageReference>
<PackageReference Include="akavache">
<Version>6.5.1</Version>
</PackageReference>
<PackageReference Include="Autofac">
<Version>4.9.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>2.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>2.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting">
<Version>3.3.1</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>12.0.2</Version>
</PackageReference>
<PackageReference Include="Plugin.Multilingual">
<Version>1.0.2</Version>
</PackageReference>
<PackageReference Include="Plugin.Permissions">
<Version>3.0.0.12</Version>
</PackageReference>
<PackageReference Include="Polly">
<Version>7.1.0</Version>
</PackageReference>
<PackageReference Include="Rg.Plugins.Popup">
<Version>1.2.0.223</Version>
</PackageReference>
<PackageReference Include="System.Net.Http">
<Version>4.3.4</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.Connectivity">
<Version>3.2.0</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.Geolocator">
<Version>4.5.0.6</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.LatestVersion">
<Version>1.1.2</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.Media">
<Version>4.0.1.5</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.Forms.ImageCircle">
<Version>3.0.0.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.Auth">
<Version>1.6.0.4</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms.Visual.Material">
<Version>4.5.0.495</Version>
</PackageReference>
<PackageReference Include="Xamarin.Plugin.FilePicker">
<Version>2.1.18</Version>
</PackageReference>
<PackageReference Include="Esri.ArcGISRuntime">
<Version>100.6.0</Version>
</PackageReference>
<PackageReference Include="Esri.ArcGISRuntime.Xamarin.Forms">
<Version>100.6.0</Version>
</PackageReference>
<PackageReference Include="NETStandard.Library">
<Version>2.0.3</Version>
</PackageReference>
<PackageReference Include="sqlite-net-pcl">
<Version>1.6.292</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.495" />
<PackageReference Include="Xamarin.Essentials" Version="1.2.0" />

@ rambo1223マテリアルを使用していることを確認すると、これが当てはまる可能性があります//github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -594599608

@jfversluis迅速な返信に感謝します。実際には、最新バージョンのXamarin.Forms.Visual.MaterialをXamarin.Formsのバージョンとして使用していますが、Xamarin.iOS.MaterialComponentsもインストールする必要がありますか?

当面; はい。 参照を更新するPRが開いていますが、今のところ、最新のXamarin.iOS.MaterialComponentsパッケージを手動で追加すると、修正されるはずです。

@jfversluis
良い一日! 私のアプリに同じ警告メールがあり、私がパッケージであるMaterialComponentsを使用せず、最新のXamarin.Forms安定バージョンもインストールしました。このスレッドにリストされているすべての必要な更新とセットアップ。
SDKのすべての最新の安定バージョンもその場所にあります

また、私のipaの解凍を適用し、grepを実行して、
SomeMobileApp.iOS.app/Xamarin.Forms.Platform.iOS.dll
SomeMobileApp.iOS.app/SomeMobileApp.iOS
SomeMobileApp.iOS.app/Xamarin.iOS.dll

これがiosプロジェクトの依存関係のリストです

<ItemGroup> <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="System.Core" /> <Reference Include="Xamarin.iOS" /> </ItemGroup> <ItemGroup> <PackageReference Include="EasyTipView"> <Version>1.0.1</Version> </PackageReference> <PackageReference Include="Flurl.Http"> <Version>2.4.2</Version> </PackageReference> <PackageReference Include="Microsoft.AppCenter.Analytics"> <Version>3.0.0</Version> </PackageReference> <PackageReference Include="Microsoft.AppCenter.Crashes"> <Version>3.0.0</Version> </PackageReference> <PackageReference Include="Microsoft.AspNet.WebApi.Client"> <Version>5.2.7</Version> </PackageReference> <PackageReference Include="Newtonsoft.Json"> <Version>12.0.3</Version> </PackageReference> <PackageReference Include="Rg.Plugins.Popup"> <Version>1.2.0.223</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.Buttons"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.Cards"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.Core"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfChart"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfListView"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfMaskedEdit"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfNumericTextBox"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfPicker"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfPopupLayout"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfProgressBar"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="Syncfusion.Xamarin.SfRotator"> <Version>17.4.0.55</Version> </PackageReference> <PackageReference Include="System.Reflection.Emit"> <Version>4.7.0</Version> </PackageReference> <PackageReference Include="Xamarin.Essentials"> <Version>1.5.2</Version> </PackageReference> <PackageReference Include="Xamarin.Forms" Version="4.5.0.530" /> <PackageReference Include="SkiaSharp.Views" Version="1.68.1.1" /> <PackageReference Include="SkiaSharp.Views.Forms" Version="1.68.1.1" /> <PackageReference Include="Xamarin.IQKeyboardManager"> <Version>1.4.1</Version> </PackageReference> </ItemGroup> <ItemGroup>

また、最新のXamarin.Forms安定バージョンをインストールしました。このスレッドにリストされているすべての必要な更新とセットアップ。

それはどのバージョンでしょうか? :)
これを引き起こしていると思われるNuGetが見当たらないので、ビルド構成に含まれている必要があります。 万が一、AzureDevOpsまたはAppCenterを介して構築していますか? 関連するビルド構成に適切な構成を設定しましたか? そのいくつかを見ると役に立ちます。

また、Xamarin.iOSチームによる次のフォローアップドキュメントを必ずお読みください。https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16#help -with- uiwebview-非推奨

@jfversluisこんにちは!

そのような速い返事と助けに感謝します。

私はあなたが共有した記事を読みましたが、まだ適用していません--warn-on-type-ref = UIKit.UIWebView
しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。
はい、確かにレンダラーではUIWebViewを使用していませんが、WKWebViewを使用しています。

私たちは、MSBuildutilsを使用してMacに接続されたWindowsPCで純粋にビルドしており、他のソリューションは使用していません。

構成の場合、必要なフラグがすべての構成に適用されるため、リリースタイプに関連するもののみが一覧表示されます。
これは構成のリストになります:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>none</DebugType> <Optimize>true</Optimize> <OutputPath>bin\iPhone\Release</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <MtouchArch>ARM64</MtouchArch> <ConsolePause>false</ConsolePause> <CodesignKey>iPhone Developer</CodesignKey> <MtouchLink>SdkOnly</MtouchLink> <MtouchSdkVersion>13.4</MtouchSdkVersion> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <MtouchExtraArgs>--optimize=experemental-xforms-product-type</MtouchExtraArgs> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' "> <DebugType>none</DebugType> <Optimize>True</Optimize> <OutputPath>bin\iPhone\Ad-Hoc</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>False</ConsolePause> <MtouchArch>ARM64</MtouchArch> <MtouchLink>SdkOnly</MtouchLink> <MtouchSdkVersion>13.4</MtouchSdkVersion> <BuildIpa>True</BuildIpa> <CodesignProvision> </CodesignProvision> <CodesignKey>iPhone Developer</CodesignKey> <CodesignEntitlements> </CodesignEntitlements> <CodesignExtraArgs /> <CodesignResourceRules /> <MtouchExtraArgs>--optimize=experemental-xforms-product-type</MtouchExtraArgs> </PropertyGroup>

これはバージョンリストです:
`=== Mac用のVisualStudioコミュニティ2019 ===

バージョン8.5.1(ビルド42)

===モノフレームワークMDK ===

ランタイム:
モノ6.8.0.123(2019-10 / 1d0d939dc30)(64ビット)
パッケージバージョン:608000123

MSBuild SDK:/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks

=== Appleデベロッパツール===

Xcode 11.4(16134)
ビルド11E146

=== Xamarin.Mac ===

バージョン:6.16.0.11(Visual Studioコミュニティ)
ハッシュ:aa73e4125
ブランチ:d16-5-xcode11.4
ビルド日:2020-03-25 11:04:02-0400

=== Xamarin.iOS ===

バージョン:13.16.0.11(Visual Studioコミュニティ)
ハッシュ:aa73e4125
ブランチ:d16-5-xcode11.4
ビルド日:2020-03-25 11:04:03-0400
=== Xamarin.Android ===

バージョン:10.2.0.100(Visual Studioコミュニティ)
コミット:xamarin-android / d16-5 / 988c811
Android SDK:/ Users / sergiiputintsev / Library / Android / sdk
サポートされているAndroidバージョン:
8.1(APIレベル27)

SDKツールバージョン:26.1.1
SDKプラットフォームツールバージョン:28.0.1
SDKビルドツールバージョン:28.0.3

ビルド情報:
モノラル:c0c5c78
Java.Interop:xamarin / java.interop / d16-5 @ fc18c54
ProGuard:xamarin / proguard / master @ 905836d
SQLite:xamarin / sqlite /3.28。 0 @ 46204c4
Xamarin.Androidツール:xamarin / xamarin-android-tools / d16-5 @ 9f4ed4b

===オペレーティングシステム===

Mac OS X 10.15.3
Darwin 19.3.0Darwinカーネルバージョン19.3.0
1月9日木曜日20:58:23PST 2020
`

また、grepはSomeMobileApp.iOS.app/Xamarin.Forms.Platform.iOS.dllでUIWebViewの発生を示しているため、これはライブラリとは関係がないと思います。
SomeMobileApp.iOS.app/SomeMobileApp.iOS
SomeMobileApp.iOS.app/Xamarin.iOS.dll

しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。

これが何を意味するのかわかりません。 私はこれを次のように解釈します。 この引数を使おうとしましたが、うまくいきませんでした。 これを使用するとどのようなエラーが発生しましたか?

おかしいです。 すべてが順調に見えますが、何かが足りないに違いありません。

csprojを詳しく調べたところ、使用しているフラグにタイプミスがあることがわかりました。 <MtouchExtraArgs>--optimize=experemental-xforms-product-type</MtouchExtraArgs><MtouchExtraArgs>--optimize=experimental-xforms-product-type</MtouchExtraArgs>必要があります。実験のスペルが間違っていることに注意してください。

私もこの問題を抱えていましたが、それは消えました。しかし、すべてが完全に順調だったと思います。 マテリアルを使用していませんでした。
Xamarin.Forms 4.5.0.530
Xamarin.IOS 13.16.0.11

--warn-on-type-ref=UIKit.UIWebViewがXamarin.Forms.Platform.IOSにまだ参照があると文句を言い続け、私はそれを取り除くために多くのことを試みたので、最終的に何が修正されたのか本当にわかりませんが、これを試すことができます:

  • binおよびobjフォルダーを削除します。
  • ~/Library/Caches/Xamarin/mtbs Macのキャッシュを削除します

--warn-on-type-ref=UIKit.UIWebViewまだ参照があると言っていますが、AppStoreはもう文句を言っていません。 私はそれがまぐれではないことを願っています。

ちょっと、そこ、
それでも同じ問題が発生しました。 「--warn-on-type-ref = UIKit.UIWebView」も含めて、すべてを試しました。
リンク後(リンク前でも)、「UIKit.UIWebView」タイプへの1つ以上の参照が「Xamarin.Forms.Platform.iOS、Version = 2.0.0.0、Culture = neutral、PublicKeyToken = null」内にまだ存在します

Xamarin.Forms.iOS 4.5.0.617(最新)を使用しており、iOSコードで参照を使用していません。
問題を見つけるために何ができますか?

編集:
AppConnectは引き続き問題を参照します。私は、Xamarin.iOS 13.14(Mono 6.8)およびXCode11.4でappcenterを使用してアプリを構築しています。
参照フラグ--optimize = experimental-xforms-product-typeが設定されましたが、何も変更されていません。

GitHubプロファイルで私のメールアドレスを見つけて、そこに連絡してください。 解決できなかったケースはありませんので、修正しましょう!

こんにちは@jfversluis
@ R41z0rと同じ問題が発生し

まず、あなたの記事をフォローしました-https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/

次に、UIWebViewを参照できるdllを手動で見つけました。

  • Xamarin.auth

  • MonoTouch.Dialog

これらをプロジェクトから削除した後、アプリを再送信して保存しても、Appleから同じ警告が表示されます。
それから私は--warn-on-type-ref = UIKit.UIWebViewについて知るようになり

プロジェクトで--warn-on-type-ref = UIKit.UIWebViewを使用した後、次のエラーが発生しました。
リンク後(リンク前でも)、「UIKit.UIWebView」タイプへの1つ以上の参照が「Xamarin.Forms.Platform.iOS、Version = 2.0.0.0、Culture = neutral、PublicKeyToken = null」内にまだ存在します

Xamarin.Formsバージョン-4.6.0.726
Xamarin.iOSバージョン-13.16.0.13
リンカーの動作-SDKのみ
mtouch引数---- optimize = experimental-xforms-product-type

オブジェクトブラウザを使用してXamarin.Forms.Platform.iOSを確認しました。 まだWebViewRendererが含まれていると思います。 添付のスクリーンショットを参照してください
xamarin ios

私はここで何か間違ったことをしていますか?

私は同じ船に乗っています。 エラー拒否なしに、AzureパイプラインをAppleに送信することはできません。
詳細については、stackoverflowの質問を参照してくださいhttps://stackoverflow.com/questions/61567850/still-getting-itms-90809-deprecated-api-usage-after-using-optimize-force-reje?noredirect=1#comment108910675_61567850

入力する正しいmtouch引数は何ですか? それは...ですか
--optimize=experimental-xforms-product-type
または
--optimize=force-rejected-types-removal

または両方?

わかりました、私はまだ立ち往生しています。 私は自分のプロジェクトでいくつかのテストを行いましたが、これが私が見つけたものです。
--warn-on-type-ref = UIKit.UIWebView -wa rnaserror:1503のみで実行した場合
リンクした後もUIWebViewがまだ存在するMT1503でビルドが失敗します。
警告と--optimize = experimental-xforms-product-typeを付けて実行した場合
MT1503でも同じ結果、エラーが発生するので、これは何もしないようです。
--optimize = force-rejected-types-removalを指定して実行すると、リンク後にUIWebViewに関するメッセージが表示されずにビルドが成功します。

私の実際のパイプラインでは、-optimize = force-rejected-types-removalを実行していましたが、Appleはそれを拒否します。 だから、私は問題が何であるかわかりません。 プロジェクトのどこにもUIWebViewを使用していません。

>>

言うまでもなく、私の問題は、すべてに議論を設定するのを忘れていたということでした
インスタンス(デバッグ/リリース、iPhone / iPhoneシミュレーター)。

多分それがあなたを助けることを確認してください。

@ R41z0rありがとう。 ええ、設定されています。紺碧のビルドログで確認できます。 私のビルドパイプラインは現時点では役に立たず、毎週のビルドをtestflightを介してプッシュするテスター/利害関係者がいるため、これは非常に厄介な問題です。

ついにリンゴの検証をクリアすることができました。 私の場合、アプリの拒否を担当するライブラリ( Branch-Xamarin-Linking-SDK )がありました。 更新したところ、アプリはリンゴの試験に合格しました。 私はこのライブラリの古いバージョンを使用していました。 大きな課題は、私たちのプロジェクトの他の多くの中でライブラリを特定することでした。
これに数日を費やした後、私は言うことができます、 -warn-on-type-ref = UIKit.UIWebViewは本当の結果を与えません。 ビルドログに警告が1つ残っている場合は、それをtestflightに送信してみてください。
続行するための最良のアプローチは、すべてのライブラリを最新バージョンに更新し、それに応じてソースコードを調整することです。 それでも問題が解決しない場合は、最も疑わしいライブラリを1つずつ削除し、プロジェクト内のそのライブラリのコードをコメントアウトしてから、ビルドをtestflightに送信してみてください。 少し時間がかかることは承知していますが、アップルの拒否を通過するためにプロジェクトに時間を費やす価値はあります。

戻ってきて、アプリがAppleの検証を通過するための方法を投稿するのを忘れました。 たくさんの投稿があったので、これに戻るのを逃しました。

私のために働いたのは、ローカルでビルドし、ipaファイルをパッケージ化することでした。 Macで、ipa拡張子をzipに変更し、解凍しました。 ターミナルを使用してYOURAPPNAME.appの「フォルダー」に移動し、 grep -r UIWebView .を使用して参照を検索しました。 .忘れないでください。そうすれば、現在のディレクトリが検索されます。 最初はそれを見逃し、grepがstdinでリッスンしているというメッセージを受け取りました。

私にとっては、次のような行になりました。
Binary file ./Frameworks/PersonalizedAdConsent.framework/PersonalizedAdConsent matches

さて、注意すべき重要なことは、リンカーがこれについて警告したことがないということです。そのため、私はそれをまったく知りませんでした。 私の場合、Firebase / Admobの一部でした。 私はリリースが1つ遅れており、最新のものに更新することで問題が修正されました。

私はまだ--optimize=force-rejected-types-removal --warn-on-type-ref=UIKit.UIWebView -warnaserror:1503をmtouch引数として使用しています。 しかし、ビルドは今や成功しています。

これが誰かが根本原因に早く到達するのに役立つことを願っています。

Visual StudioとXcodeを最新に更新しましたが、 --optimize=experimental-xforms-product-typeまだ機能しませんでした。
幸い、 --optimize=experimental-xforms-product-type --optimize=+force-rejected-types-removalはそうしました。

しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。

これが何を意味するのかわかりません。 私はこれを次のように解釈します。 この引数を使おうとしましたが、うまくいきませんでした。 これを使用するとどのようなエラーが発生しましたか?

おかしいです。 すべてが順調に見えますが、何かが足りないに違いありません。

--optimization = force-rejected-types-削除するとモノラルエラーが発生します不明なコマンドライン引数

しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。

これが何を意味するのかわかりません。 私はこれを次のように解釈します。 この引数を使おうとしましたが、うまくいきませんでした。 これを使用するとどのようなエラーが発生しましたか?
おかしいです。 すべてが順調に見えますが、何かが足りないに違いありません。

--optimization = force-rejected-types-削除するとモノラルエラーが発生します不明なコマンドライン引数

こんにちは、
引数--optimization--optimizeべきではありません

@ taublast @ Bradtusそれは正しいです。 最適化が誤って記述されたドキュメントページが1つあります。 最適化する必要があります

ここでも同じ問題です。 Appleが数ヶ月からの廃止をアドバイスしたとき、今日私たちがこれのためにブロックされることは不可能です。

@biapar

こんにちは@biaparあなたは完全に正しいです。 そして、これによってブロックされるべきではありません。なぜなら、私たちが実施しているソリューションも、ここ数か月間あなたのためにここにあるからです。 そして、それが毎回機能することが証明されています。

何がうまくいかないのか教えてください。私たちはそれを理解することができます

@biapar

私はすでにすべてを作成しました(RELEASEモードで)。 ステップバイステップで再試行します。
image

image

image

=== Mac用のVisualStudioコミュニティ2019 ===

バージョン8.5.5(ビルド7)
インストールUUID:4ca0550e-38d1-40b2-a470-7ae00766fcac
GTK + 2.24.23(ローリーテーマ)
Xamarin.Mac 6.14.1.39(d16-5 / 30e8706b4)

Package version: 608000099

===モノフレームワークMDK ===

ランタイム:
モノ6.8.0.99(2019-10 / 1182f8cbf5b)(64ビット)
パッケージバージョン:608000099

=== Roslyn(言語サービス)===

3.5.0-beta4-20125-04 + 1baa0b3063238ed752ad1f0368b1df6b6901373e

=== NuGet ===

バージョン:5.4.0.6315

=== .NET Core SDK ===

SDK:/usr/local/share/dotnet/sdk/3.1.200/Sdks
Versioni SDK:
3.1.200
3.1.102
3.1.101
3.0.101
3.0.100
2.1.701
2.1.700
2.1.505
2.1.504
SDK di MSBuild:/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks

===ランタイムdi.NET Core ===

ランタイム:/ usr / local / share / dotnet / dotnet
Versioniランタイム:
3.1.2
3.1.1
3.0.1
3.0.0
2.1.17
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.11
2.1.9
2.1.8

=== Xamarin.Profiler ===

バージョン:1.6.12.26
Percorso:/ Applications / Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

===アップデータ===

バージョン:11

=== Appleデベロッパツール===

Xcode 11.4.1(16137)
ビルド11E503a

=== Xamarin.Mac ===

バージョン:6.16.0.13(Visual Studioコミュニティ)
ハッシュ:b75deaf82
ブランチ:d16-5-xcode11.4
ビルド日:2020-04-01 21:33:18-0400

=== Xamarin.iOS ===

バージョン:13.16.0.13(Visual Studioコミュニティ)
ハッシュ:b75deaf82
ブランチ:d16-5-xcode11.4
ビルド日:2020-04-01 21:33:19-0400

=== Xamarin Designer ===

バージョン:16.5.0.471
ハッシュ:35aa4889d
ブランチ:remotes / origin / d16-5
ビルド日:2020-02-25 00:52:08 UTC

=== Xamarin.Android ===

バージョン:10.2.0.100(Visual Studioコミュニティ)
コミット:xamarin-android / d16-5 / 988c811
Android SDK:/ Users / biagioparuolo / Library / Developer / Xamarin / android-sdk-macosx
Versione di Androidのサポート:
8.0(livello API 26)
8.1(livello API 27)

Versione di SDKツール:26.1.1
Versione degli strumenti della piattaforma SDK:30.0.1
Versione degli strumenti di compilazione SDK:29.0.2

Informazioni sulla compilazione:
モノラル:c0c5c78
Java.Interop:xamarin / java.interop / d16-5 @ fc18c54
ProGuard:xamarin / proguard / master @ 905836d
SQLite:xamarin / sqlite /3.28。 0 @ 46204c4
Xamarin.Androidツール:xamarin / xamarin-android-tools / d16-5 @ 9f4ed4b

=== Microsoft Mobile OpenJDK ===

Java SDK:/Users/biagioparuolo/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Il codice EPL diAndroidDesignerèdisponibilequi:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

バージョン:16.5.0.39
ハッシュ:6fb4c79
ブランチ:remotes / origin / d16-5
ビルド日:2020-04-29 20:09:00 UTC

=== Androidデバイスマネージャー===

バージョン:16.5.0.73
ハッシュ:dff2f03
ブランチ:remotes / origin / d16-5
ビルド日:2020-04-29 20:09:20 UTC

=== Xamarin Inspector ===

バージョン:1.4.3
ハッシュ:db27525
ブランチ:1.4リリース
ビルド日:2018年7月9日月曜日21:20:18 GMT
クライアントの互換性:1

===ビルド情報===

リリースID:805050007
Gitリビジョン:f7b7ac4291b7712b5e02dd65d45685346f321ded
ビルド日:2020-04-30 11:54:56-04
ビルドブランチ:リリース-8.5
Xamarin拡張機能:f7b7ac4291b7712b5e02dd65d45685346f321ded

===オペレーティングシステム===

Mac OS X 10.15.4
Darwin 19.4.0Darwinカーネルバージョン19.4.0
3月4日水曜日22:28:40PST 2020
ルート:xnu-6153.101.6〜15 / RELEASE_X86_64 x86_64

===ユーザーがインストールした拡張機能を有効にする===

Xamarin.FormsHotReload拡張機能1.4.0
MonoGame Extension 3.7.1.189
XAMLスタイラー2.0.1

また、実際にビルドをApp Storeに送信しましたか? 出力の警告が誤検知を与える場合があると思います。 また、Visual Studio for Macを介してアプリをアーカイブしていますか、それともAppCenterまたはAzureDevOpsを介してアーカイブしていますか?

@biapar他のオプションは、アプリの出力を

https://github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -624655801
または、すべてのdllをvsmacにドロップし、その方法でタイプタイプを検査/検索できます。
https://github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -621915045

また、実際にビルドをApp Storeに送信しましたか? 出力の警告が誤検知を与える場合があると思います。 また、Visual Studio for Macを介してアプリをアーカイブしていますか、それともAppCenterまたはAzureDevOpsを介してアーカイブしていますか?

MacとWindowsでVisualStudioを使用しています。

しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。

これが何を意味するのかわかりません。 私はこれを次のように解釈します。 この引数を使おうとしましたが、うまくいきませんでした。 これを使用するとどのようなエラーが発生しましたか?

おかしいです。 すべてが順調に見えますが、何かが足りないに違いありません。

--optimization = force-rejected-types-削除するとモノラルエラーが発生します不明なコマンドライン引数

しかし、-optimization = force-rejected-types-removalを適用しようとしましたが、最新の更新ではそのような引数がないため、エラーが発生しました。

これが何を意味するのかわかりません。 私はこれを次のように解釈します。 この引数を使おうとしましたが、うまくいきませんでした。 これを使用するとどのようなエラーが発生しましたか?
おかしいです。 すべてが順調に見えますが、何かが足りないに違いありません。

--optimization = force-rejected-types-削除するとモノラルエラーが発生します不明なコマンドライン引数

こんにちは、
引数--optimization--optimizeべきではありません

すごいいいね!
@jfversluis here(https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16)彼らはあなたに間違った行を与えるだけです:

強力な解決策は、プロジェクトの追加のmtouch引数に--optimization = force-rejected-types-removalを追加することです。 これにより、UIWebViewの痕跡がアプリケーションから削除されます。 ただし、その型を参照するコードは正しく機能しません(例外またはクラッシュが予想されます)。 これは、実行時にコードに到達できないことが確実な場合にのみ使用する必要があります(静的分析によって到達可能であったとしても)。

とにかく私はそれを次のようにAppStoreに渡すことができました:

  1. インクリメンタルビルドを有効にするオフ(重要)
  2. 単調な追加のもの:-optimize = experimental-xforms-product-type --optimize = + force-rejected-types-removal --warn-on-type-ref = UIKit.UIWebView -wa rnaserror:1503

ここ(https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16)では、間違った行が表示されます。

私はそれを修正するためにそのドキュメントでPRを開きました。 現在動作していると私にアプローチした人がさらに数人いますが、残念ながらまだマージされていません。

あなたがそれを修正したと聞いてうれしいです!

@jfversluisこのUIWebView非推奨の問題についても同じ問題があります。
私はあなたと他の人によって提供されたそれぞれの解決策を試しました。

  1. リンクの動作を[すべてリンク]に変更しました。

  2. MTouchリンクパラメーター--optimize = experimental-xforms-product-type --optimize = force-rejected-types-removal --warn-on-type-ref = UIKit.UIWebViewを追加しました

  3. xamarin.Formsのnugetパッケージを最新バージョン(4.6.0.726)にアップグレードしました

  4. Visual Studio For Macコミュニティの最新バージョンを使用しています:
    Visual Studio Community 2019 for Mac
    バージョン8.5.5(ビルド7)

  5. 私のXamarin.iOSは13.16.0.13です:
    Xamarin.iOS
    バージョン:13.16.0.13(Visual Studioコミュニティ)
    ハッシュ:b75deaf82
    ブランチ:d16-5-xcode11.4
    ビルド日:2020-04-01 21:33:19-0400

しかし、新しいビルドをtestflightにプッシュすると、AppleからUIWebViewDeprecationの問題メッセージが表示されます。
ビルドを作成したときにもこのメッセージが表示されます。
MTOUCH : warning MT1502: One or more reference(s) to type 'UIKit.UIWebView' already exists inside 'Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' before linking

何が足りないのか教えていただけますか? この問題を解決するにはどうすればよいですか。

私のプロジェクトには、Visual Studioプロジェクトである他のライブラリプロジェクトへの参照があり、このプロジェクトで使用するライブラリを生成しました。

以下は私のプロジェクトのnugetパッケージリストです。
<ItemGroup> <Reference Include="Plugin.Settings, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\Xam.Plugins.Settings.3.1.1\lib\Xamarin.iOS10\Plugin.Settings.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Plugin.Settings.Abstractions, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\Xam.Plugins.Settings.3.1.1\lib\Xamarin.iOS10\Plugin.Settings.Abstractions.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Sockets.Plugin, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\rda.SocketsForPCL.2.0.2\lib\Xamarin.iOS10\Sockets.Plugin.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Sockets.Plugin.Abstractions, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\rda.SocketsForPCL.2.0.2\lib\Xamarin.iOS10\Sockets.Plugin.Abstractions.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="SQLiteNetExtensions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\SQLiteNetExtensions.2.1.0\lib\netstandard1.1\SQLiteNetExtensions.dll</HintPath> </Reference> <Reference Include="SQLiteNetExtensionsAsync, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\SQLiteNetExtensions.Async.2.1.0\lib\netstandard1.1\SQLiteNetExtensionsAsync.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="System.Core" /> <Reference Include="Xamarin.iOS" /> <Reference Include="Acr.Support.iOS"> <HintPath>..\packages\Acr.Support.2.1.0\lib\Xamarin.iOS10\Acr.Support.iOS.dll</HintPath> </Reference> <Reference Include="OxyPlot.Xamarin.iOS"> <HintPath>..\packages\OxyPlot.Xamarin.iOS.1.0.0\lib\Xamarin.iOS10\OxyPlot.Xamarin.iOS.dll</HintPath> </Reference> <Reference Include="Microsoft.CSharp" /> <Reference Include="System.IO.Compression" /> <Reference Include="System.Net.Http" /> <Reference Include="PCLCrypto"> <HintPath>..\packages\PCLCrypto.2.0.147\lib\xamarinios10\PCLCrypto.dll</HintPath> </Reference> <Reference Include="System.Json" /> <Reference Include="ICSharpCode.SharpZipLib.Portable"> <HintPath>..\packages\SharpZipLib.Portable.0.86.0.0003\lib\portable-net45+netcore45+wp8+win8+wpa81+MonoTouch+MonoAndroid+Xamarin.iOS10\ICSharpCode.SharpZipLib.Portable.dll</HintPath> </Reference> <Reference Include="SQLitePCL.raw"> <HintPath>..\packages\SQLitePCL.raw.0.9.3\lib\Xamarin.iOS10\SQLitePCL.raw.dll</HintPath> </Reference> <Reference Include="SQLitePCL.ugly"> <HintPath>..\packages\SQLitePCL.ugly.0.9.3\lib\portable-net45+netcore45+wp8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLitePCL.ugly.dll</HintPath> </Reference> <Reference Include="mscorlib" /> <Reference Include="OxyPlot.Xamarin.Forms"> <HintPath>..\packages\OxyPlot.Xamarin.Forms.1.0.0\lib\Xamarin.iOS10\OxyPlot.Xamarin.Forms.dll</HintPath> </Reference> <Reference Include="OxyPlot.Xamarin.Forms.Platform.iOS"> <HintPath>..\packages\OxyPlot.Xamarin.Forms.1.0.0\lib\Xamarin.iOS10\OxyPlot.Xamarin.Forms.Platform.iOS.dll</HintPath> </Reference> <Reference Include="Validation"> <HintPath>..\packages\Validation.2.4.22\lib\netstandard1.3\Validation.dll</HintPath> </Reference> <Reference Include="BTProgressHUD"> <HintPath>..\packages\BTProgressHUD.1.3.2\lib\xamarinios10\BTProgressHUD.dll</HintPath> </Reference> <Reference Include="OpenTK-1.0" /> <Reference Include="System.Xml.Linq" /> <Reference Include="Plugin.Permissions"> <HintPath>..\packages\Plugin.Permissions.6.0.1\lib\xamarinios10\Plugin.Permissions.dll</HintPath> </Reference> <Reference Include="Xamarin.Forms.Core"> <HintPath>..\packages\Xamarin.Forms.4.6.0.726\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath> </Reference> <Reference Include="Xamarin.Forms.Platform"> <HintPath>..\packages\Xamarin.Forms.4.6.0.726\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath> </Reference> <Reference Include="Xamarin.Forms.Xaml"> <HintPath>..\packages\Xamarin.Forms.4.6.0.726\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath> </Reference> <Reference Include="SQLitePCLRaw.core"> <HintPath>..\packages\SQLitePCLRaw.core.1.1.11\lib\Xamarin.iOS10\SQLitePCLRaw.core.dll</HintPath> </Reference> <Reference Include="SQLitePCLRaw.provider.sqlite3"> <HintPath>..\packages\SQLitePCLRaw.provider.sqlite3.ios_unified.1.1.11\lib\Xamarin.iOS10\SQLitePCLRaw.provider.sqlite3.dll</HintPath> </Reference> <Reference Include="SQLitePCLRaw.batteries_green"> <HintPath>..\packages\SQLitePCLRaw.bundle_green.1.1.11\lib\Xamarin.iOS10\SQLitePCLRaw.batteries_green.dll</HintPath> </Reference> <Reference Include="SQLitePCLRaw.batteries_v2"> <HintPath>..\packages\SQLitePCLRaw.bundle_green.1.1.11\lib\Xamarin.iOS10\SQLitePCLRaw.batteries_v2.dll</HintPath> </Reference> <Reference Include="SQLite-net"> <HintPath>..\packages\sqlite-net-pcl.1.5.231\lib\netstandard1.1\SQLite-net.dll</HintPath> </Reference> <Reference Include="WebP.Touch"> <HintPath>..\packages\WebP.Touch.1.0.8\lib\Xamarin.iOS10\WebP.Touch.dll</HintPath> </Reference> <Reference Include="PropertyChanged"> <HintPath>..\packages\PropertyChanged.Fody.2.5.13\lib\netstandard1.0\PropertyChanged.dll</HintPath> </Reference> <Reference Include="MvvmCross"> <HintPath>..\packages\MvvmCross.6.2.1\lib\xamarinios10\MvvmCross.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugin.Color"> <HintPath>..\packages\MvvmCross.Plugin.Color.6.2.1\lib\xamarinios10\MvvmCross.Plugin.Color.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugin.File"> <HintPath>..\packages\MvvmCross.Plugin.File.6.2.1\lib\xamarinios10\MvvmCross.Plugin.File.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugin.Messenger"> <HintPath>..\packages\MvvmCross.Plugin.Messenger.6.2.1\lib\netstandard2.0\MvvmCross.Plugin.Messenger.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugin.ResourceLoader"> <HintPath>..\packages\MvvmCross.Plugin.ResourceLoader.6.2.1\lib\xamarinios10\MvvmCross.Plugin.ResourceLoader.dll</HintPath> </Reference> <Reference Include="OxyPlot"> <HintPath>..\packages\OxyPlot.Core.2.0.0\lib\netstandard1.0\OxyPlot.dll</HintPath> </Reference> <Reference Include="Splat"> <HintPath>..\packages\Splat.5.0.2\lib\xamarinios10\Splat.dll</HintPath> </Reference> <Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Collections.Immutable"> <HintPath>..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath> </Reference> <Reference Include="ReactiveUI"> <HintPath>..\packages\ReactiveUI.9.0.1\lib\xamarinios10\ReactiveUI.dll</HintPath> </Reference> <Reference Include="Plugin.BLE.Abstractions"> <HintPath>..\packages\Plugin.BLE.2.1.1\lib\Xamarin.iOS10\Plugin.BLE.Abstractions.dll</HintPath> </Reference> <Reference Include="Plugin.BLE"> <HintPath>..\packages\Plugin.BLE.2.1.1\lib\Xamarin.iOS10\Plugin.BLE.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugins.BLE"> <HintPath>..\packages\MvvmCross.Plugin.BLE.2.1.1\lib\Xamarin.iOS10\MvvmCross.Plugins.BLE.dll</HintPath> </Reference> <Reference Include="MvvmCross.Plugins.BLE.iOS"> <HintPath>..\packages\MvvmCross.Plugin.BLE.2.1.1\lib\Xamarin.iOS10\MvvmCross.Plugins.BLE.iOS.dll</HintPath> </Reference> <Reference Include="Acr.UserDialogs"> <HintPath>..\packages\Acr.UserDialogs.7.1.0.442\lib\xamarinios10\Acr.UserDialogs.dll</HintPath> </Reference> <Reference Include="System.Reactive"> <HintPath>..\packages\System.Reactive.4.4.1\lib\netstandard2.0\System.Reactive.dll</HintPath> </Reference> <Reference Include="System.Reactive.Core"> <HintPath>..\packages\System.Reactive.Core.4.0.0\lib\netstandard2.0\System.Reactive.Core.dll</HintPath> </Reference> <Reference Include="System.Reactive.Interfaces"> <HintPath>..\packages\System.Reactive.Interfaces.4.0.0\lib\netstandard2.0\System.Reactive.Interfaces.dll</HintPath> </Reference> <Reference Include="System.Reactive.Linq"> <HintPath>..\packages\System.Reactive.Linq.4.0.0\lib\netstandard2.0\System.Reactive.Linq.dll</HintPath> </Reference> <Reference Include="System.Reactive.PlatformServices"> <HintPath>..\packages\System.Reactive.PlatformServices.4.0.0\lib\netstandard2.0\System.Reactive.PlatformServices.dll</HintPath> </Reference> <Reference Include="System.Reactive.Providers"> <HintPath>..\packages\System.Reactive.Providers.4.0.0\lib\netstandard2.0\System.Reactive.Providers.dll</HintPath> </Reference> <Reference Include="Xamarin.Essentials"> <HintPath>..\packages\Xamarin.Essentials.1.5.3.2\lib\xamarinios10\Xamarin.Essentials.dll</HintPath> </Reference> <Reference Include="I18N" /> <Reference Include="CsvHelper"> <HintPath>..\packages\CsvHelper.15.0.5\lib\netstandard2.1\CsvHelper.dll</HintPath> </Reference> <Reference Include="System.Drawing.Common.dll" /> <Reference Include="Newtonsoft.Json"> <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\netstandard2.0\Newtonsoft.Json.dll</HintPath> </Reference> <Reference Include="DynamicData"> <HintPath>..\packages\DynamicData.6.14.14\lib\netstandard2.0\DynamicData.dll</HintPath> </Reference> <Reference Include="Stateless"> <HintPath>..\packages\Stateless.5.1.2\lib\netstandard2.0\Stateless.dll</HintPath> </Reference> <Reference Include="System.Buffers"> <HintPath>..\packages\System.Buffers.4.5.1\lib\netstandard2.0\System.Buffers.dll</HintPath> </Reference> <Reference Include="System.Runtime.CompilerServices.Unsafe"> <HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath> </Reference> <Reference Include="System.Memory"> <HintPath>..\packages\System.Memory.4.5.4\lib\netstandard2.0\System.Memory.dll</HintPath> </Reference> <Reference Include="Cirrious.FluentLayouts.Touch"> <HintPath>..\packages\Cirrious.FluentLayout.2.9.0\lib\Xamarin.iOS10\Cirrious.FluentLayouts.Touch.dll</HintPath> </Reference> <Reference Include="HockeySDK"> <HintPath>..\packages\HockeySDK.Xamarin.5.2.0\lib\Xamarin.iOS10\HockeySDK.dll</HintPath> </Reference> <Reference Include="HockeySDK.iOSBindings"> <HintPath>..\packages\HockeySDK.Xamarin.5.2.0\lib\Xamarin.iOS10\HockeySDK.iOSBindings.dll</HintPath> </Reference> <Reference Include="PInvoke.Windows.Core"> <HintPath>..\packages\PInvoke.Windows.Core.0.6.6\lib\netstandard2.0\PInvoke.Windows.Core.dll</HintPath> </Reference> <Reference Include="PInvoke.Kernel32"> <HintPath>..\packages\PInvoke.Kernel32.0.6.6\lib\netstandard2.0\PInvoke.Kernel32.dll</HintPath> </Reference> <Reference Include="PInvoke.BCrypt"> <HintPath>..\packages\PInvoke.BCrypt.0.6.6\lib\netstandard1.1\PInvoke.BCrypt.dll</HintPath> </Reference> <Reference Include="PInvoke.NCrypt"> <HintPath>..\packages\PInvoke.NCrypt.0.6.6\lib\netstandard2.0\PInvoke.NCrypt.dll</HintPath> </Reference> <Reference Include="SimpleInjector"> <HintPath>..\packages\SimpleInjector.4.10.2\lib\netstandard2.0\SimpleInjector.dll</HintPath> </Reference> <Reference Include="FFImageLoading"> <HintPath>..\packages\Xamarin.FFImageLoading.2.4.11.982\lib\Xamarin.iOS10\FFImageLoading.dll</HintPath> </Reference> <Reference Include="FFImageLoading.Platform"> <HintPath>..\packages\Xamarin.FFImageLoading.2.4.11.982\lib\Xamarin.iOS10\FFImageLoading.Platform.dll</HintPath> </Reference> </ItemGroup>

ねえ@ W0126このコメントからgrepの提案を試して、その結果がどうなるか教えてください。

また、bin / objフォルダーをクリアして、キャッシュが含まれていないことを確認してください。

正しいビルド構成のフラグと設定が構成されていること、およびそれが、使用しているCI / CDシステムで使用しているビルド構成でもあることを再確認してください。

@jfversluis

アプリに対してgrepコマンドを実行しました。
binary file ./Payload/uPyxis.app/uPyxis matches出力します

uPyxisは私のアプリです。

しかし、コードではUIWebViewを使用していません。 UIWebViewがどこから来たのかわかりません。

すべてのbin / objフォルダーをクリーンアップし、すべての構成がフラグと設定で正しく構成されていることを確認します。

@jfversluis
私はついにそれが古いサードライブラリであるHockeySDKが原因であることがわかりました。これは非常に古く、現在はアクティブではありません。
そこで、このパッケージを削除しました。
これにより、アプリは警告なしにtestflightを通過できるようになります。

ありがとう。

それは素晴らしいニュースです@ W0126! どうなるか教えてください!

こんにちは、

私は過去5年間、XFを使用してアプリを開発しています。
私も同じ問題に直面していて、とてもがっかりしています。 Xamarinからのサポートと的を絞った支援が不足しているため、別のプラットフォームに切り替えることにした場合がありました。

次に、このリンクhttps://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/をウォークスルーしました
私はすべての指示に従い、テスト用にTestFlightでビルドを正常にアップロードしました。
BUTTTTTTTTT

LinkAllを変更すると、Signalrで深刻な問題が発生します。リンクオプションをLINK ALLに変更すると、Signar機能を使用できなくなります。

エラー

タイプ 'Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory'に適したコンストラクターが見つかりませんでした。 タイプが具体的であり、サービスがパブリックコンストラクターのすべてのパラメーターに登録されていることを確認してください。

スキップオプションを使おうとしましたが、うまくいきませんでした。

--linkskip = Microsoft.AspNetCore

Xamarinが開発者を支援できないことに失望しています。

誰かが解決策を持っているなら、私を助けてください。

@LumiProjは、リンカーの動作をSDKのみに設定しようとしましたか?

私は各パッケージを再度更新することを解決し(それらは更新-1バージョンでした)、手順を再度実行しました。
これは私のAppleConfigです。
image

こんにちは、

私も問題に直面しており、上記の提案された修正を試しました。 すべてのビルド(デバッグ/リリース)で、これらのタグ--optimize=experimental-xforms-product-type --optimize=+force-rejected-types-removal --warn-on-type-ref=UIKit.UIWebView -warnaserror:1503を使用してLinkSdkとLinkAllを試しました。 また、すべてのパッケージを更新しました。これらは、使用するNuGetパッケージです。
Screen Shot 2020-05-19 at 10 40 35 AM (IOS)
Screen Shot 2020-05-19 at 10 40 56 AM
(事業)

上記のようにgrep -r "UIWebView" .を試してみると、 Binary file ./MyApp.iOS.app/Xamarin.Forms.Platform.iOS.dll matches Binary file ./MyApp.iOS.app/Xamarin.iOS.dll matches Binary file ./MyApp.iOS.app/MyApp.iOS matches

プロジェクトでUIWebViewを明示的に使用していません(VSで検索しても何も表示されません)

これは私の構成です
Screen Shot 2020-05-19 at 10 44 36 AM
(LinkSdkまたはLinkAllでは機能しません)

私は過去数日間、さまざまな例やさまざまなフォーラムを調べてきましたが、 grep -r "UIWebView" .場合、バイナリファイル内の言及を削除できず、アプリストアによってすべて拒否されました。 任意の提案やアドバイスをいただければ幸いです!

こんにちは、

やっと体調が良くなりました。
--optimize = experimental-xforms-product-typeを使用する
LinkSdkAssembliesを使用します。

素晴らしい@LumiProj

@JJwilkinあなたからのメールがあります。 私たちはそれを理解します!

戻ってきて、アプリがAppleの検証を通過するための方法を投稿するのを忘れました。 たくさんの投稿があったので、これに戻るのを逃しました。

私のために働いたのは、ローカルでビルドし、ipaファイルをパッケージ化することでした。 Macで、ipa拡張子をzipに変更し、解凍しました。 ターミナルを使用してYOURAPPNAME.appの「フォルダー」に移動し、 grep -r UIWebView .を使用して参照を検索しました。 .忘れないでください。そうすれば、現在のディレクトリが検索されます。 最初はそれを見逃し、grepがstdinでリッスンしているというメッセージを受け取りました。

私にとっては、次のような行になりました。
Binary file ./Frameworks/PersonalizedAdConsent.framework/PersonalizedAdConsent matches

さて、注意すべき重要なことは、リンカーがこれについて警告したことがないということです。そのため、私はそれをまったく知りませんでした。 私の場合、Firebase / Admobの一部でした。 私はリリースが1つ遅れており、最新のものに更新することで問題が修正されました。

私はまだ--optimize=force-rejected-types-removal --warn-on-type-ref=UIKit.UIWebView -warnaserror:1503をmtouch引数として使用しています。 しかし、ビルドは今や成功しています。

これが誰かが根本原因に早く到達するのに役立つことを願っています。

jmichasありがとうございます。
あなたは私の仕事の多くを節約します。 与えられたすべてのガイドラインと提案を使用してできる限りのことを行いましたが、Xamarin.Forms.iOS.PlatformdllでUIWebView参照を実際に取得することはできません。 私はもうすぐそこにいましたが、何かが足りないので、AppStoreの拒否から逃れることができます。 そしてついに私はあなたから最後の欠けている部分を見つけました、そしてそれは今うまくいきました。 これでテスト段階を開始できます。

同じ問題があります。
最新のすべてですべての新しいルールに従いました。
手術eephyuはipaを開梱することを提案しましたか
grepはまだアプリバイナリでのみUIWebViewへの参照を見つけています。
¯_(ツ)_ /¯

そして答えはカラバッシュです! およびXamarinTestCloudAgentnugetパッケージ。
そのパッケージとCalabash.Start()参照を削除すると、AppStoreに合格します。

@pmaceすばらしいあなたは解決策を見つけました。 いずれにせよ、Calabashパッケージは、Appleがとにかく許可しないプライベートAPIを使用しているため、AppStoreに移動するビルドから常に削除する必要があります:)

これを見つけた人のために:Xamarin.Forms 5(プレリリースatm)を試してみてください。これは、UIWebViewRendererが削除されており、ビルドフラグやその他の手間をかけずにこの問題から抜け出すことができます。

こんにちは、

私も問題に直面しており、上記の提案された修正を試しました。 すべてのビルド(デバッグ/リリース)で、これらのタグ--optimize=experimental-xforms-product-type --optimize=+force-rejected-types-removal --warn-on-type-ref=UIKit.UIWebView -warnaserror:1503を使用してLinkSdkとLinkAllを試しました。 また、すべてのパッケージを更新しました。これらは、使用するNuGetパッケージです。
Screen Shot 2020-05-19 at 10 40 35 AM (IOS)
Screen Shot 2020-05-19 at 10 40 56 AM
(事業)

上記のようにgrep -r "UIWebView" .を試してみると、 Binary file ./MyApp.iOS.app/Xamarin.Forms.Platform.iOS.dll matches Binary file ./MyApp.iOS.app/Xamarin.iOS.dll matches Binary file ./MyApp.iOS.app/MyApp.iOS matches

プロジェクトでUIWebViewを明示的に使用していません(VSで検索しても何も表示されません)

これは私の構成です
Screen Shot 2020-05-19 at 10 44 36 AM
(LinkSdkまたはLinkAllでは機能しません)

私は過去数日間、さまざまな例やさまざまなフォーラムを調べてきましたが、 grep -r "UIWebView" .場合、バイナリファイル内の言及を削除できず、アプリストアによってすべて拒否されました。 任意の提案やアドバイスをいただければ幸いです!

私はこれと同じ問題を抱えています:(、

@jmatusburgosあなたのプロジェクトの詳細を投稿してください私に直接メールを送ってください

@jmatusburgosフォローこれはうまくいくはずです。
https://github.com/xamarin/Xamarin.Forms/issues/9823#issuecomment -630945296

こんにちは@LumiProjイムはその議論を持っています。

@jfversluisImはXamarin.forms4.8.0.1364を使用します。 googleAnalyticsGoogle.SigInのような多くのライブラリをアンインストールしてUIWebViewへの参照を提供し、コマンドgrepが一部のライブラリの参照を表示しないまで、別のライブラリをアップグレードしましたが、 grep -r "UIWebView" .を使用するとBinary file ./MyApp.iOS.app/Xamarin.Forms.Platform.iOS.dll...は、明示的な参照については表示しません。

XCode12を搭載したMicrosoftマシンとMacでVS2019を使用しています。

これは私の構成です:
LinkAllとLinkSdkAssembliesでテストしました

image

@jmatusburgosは、私のGitHubページで私のメールを見つけて、そこに連絡して、これを理解できるでしょうか。 :)

@jfversluisご回答ありがとうございます。同僚の助けを借りて、問題の原因となった3つのライブラリが見つかったことをコメントしてください。

Refractored.XamForms.PullToRefresh 2.4.1
Paypal.Forms 2.18.6
Xamarin.PayPal.iOS 2.18.0

これらのライブラリはすべて廃止されています。 削除してようやく動作します。
これの興味深い点は、コマンドgrepを使用すると、このライブラリの一致が表示されなかったことです。

したがって、時にはジグソーが有罪の図書館を見つけた可能性があります。 繰り返しになりますが、 @ jfversluisにご利用いただき

ええ、彼らはネイティブライブラリを含んでいるので、そのgrepコマンドによって取得されないラッパーを作成したと思います。 ご迷惑をおかけして申し訳ありませんが、ご理解いただきありがとうございます。

このページは役に立ちましたか?
0 / 5 - 0 評価