M3: iOS TFM (macOS-only condition) + Android-only condition for AndroidX.LocalBroadcastManager

This commit is contained in:
Yun Chan 2026-08-15 16:49:15 +09:00
parent 250b2c3c10
commit 311d043db9

View file

@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net10.0-android</TargetFrameworks> <!-- Windows 에선 ios 워크로드가 없으므로 android 만; macOS 빌드머신에서 ios TFM 추가 (M3) -->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android;net10.0-ios</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android</TargetFrameworks>
<!-- Note for MacCatalyst: <!-- Note for MacCatalyst:
@ -69,8 +71,8 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" />
<PackageReference Include="ZXing.Net.Maui.Controls" Version="0.4.0" /> <PackageReference Include="ZXing.Net.Maui.Controls" Version="0.4.0" />
<PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="3.2.0" /> <PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="3.2.0" />
<!-- 모달 NavigationPage 를 링커가 싣지 않아 FileNotFoundException 으로 크래시 → 명시 참조 --> <!-- 모달 NavigationPage 를 링커가 싣지 않아 FileNotFoundException 으로 크래시 → 명시 참조 (Android 전용) -->
<PackageReference Include="Xamarin.AndroidX.LocalBroadcastManager" Version="1.1.0.24" /> <PackageReference Include="Xamarin.AndroidX.LocalBroadcastManager" Version="1.1.0.24" Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" />
</ItemGroup> </ItemGroup>
</Project> </Project>