maui Relase ๋นŒ๋“œ ์—๋Ÿฌ

์•ˆ๋…•ํ•˜์„ธ์š”. maui์—์„œ ๋ฆด๋ฆฌ์ฆˆ๋ชจ๋“œ๋กœ ๋นŒ๋“œ์—๋Ÿฌ๊ฐ€ ๋‚˜์„œ ์งˆ๋ฌธ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
์—๋Ÿฌ๊ฐ€๋‚˜๋Š”๊ฒƒ์€ CS1705 , MSB406 2๊ฐœ ์ž…๋‹ˆ๋‹ค.
๋””๋ฒ„๊ทธ๋ชจ๋“œ์—์„œ ์‹คํ–‰ํ• ๋•Œ๋Š” ๋ฌธ์ œ์—†์ด ๋นŒ๋“œ๊ฐ€ ๋˜์—ˆ์—ˆ๋Š”๋ฐ ๋ฆด๋ฆฌ์ฆˆ๋กœ ๋ณ€๊ฒฝํ•˜๋‹ˆ ์—๋Ÿฌ๊ฐ€ ๋‚ฉ๋‹ˆ๋‹ค.

Relase๋ชจ๋“œ๋กœ ๋นŒ๋“œ๋ฅผ ์„ฑ๊ณต์‹œํ‚ฌ ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.
๋„์›€์„ ์š”์ฒญ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

image

ํ”„๋กœ์ ํŠธ ํŒŒ์ผ(mauiFirebaseDemo.csproj)์˜ ๋‚ด์šฉ์„ ์˜ฌ๋ ค์ฃผ์„ธ์š”.

ํ”„๋กœ์ ํŠธํŒŒ์ผ์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

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

	<PropertyGroup>
		<!--<TargetFrameworks>net6.0-android;</TargetFrameworks>-->
		<TargetFrameworks>net6.0-android;net6.0-ios;</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);net6.0-tizen</TargetFrameworks> -->
		<OutputType>Exe</OutputType>
		<RootNamespace>MauiFirebaseDemo</RootNamespace>
		<UseMaui>true</UseMaui>
		<SingleProject>true</SingleProject>
		<ImplicitUsings>enable</ImplicitUsings>

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

		<!-- App Identifier -->
		<ApplicationId>com.cedricgabrang.mauifirebasedemo</ApplicationId>
		<ApplicationIdGuid>A132B7F5-BC2E-4BF4-A6E3-0F4F97640979</ApplicationIdGuid>

		
		
		<!-- Versions -->
		<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
		<ApplicationVersion>1</ApplicationVersion>

		<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
		<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
		<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
	</PropertyGroup>

	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0-android|AnyCPU'">
	  <RunAOTCompilation>False</RunAOTCompilation>
	  <AndroidPackageFormat>apk</AndroidPackageFormat>
	</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 Condition="'$(TargetFramework)' == 'net6.0-android'">
		<GoogleServicesJson Include="google-services.json" />
	</ItemGroup>

	<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios'">
		<BundleResource Include="GoogleService-Info.plist" />
	</ItemGroup>

	<ItemGroup>
	  <None Remove="Platforms\Android\Resources\values\strings.xml" />
	</ItemGroup>

	<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios' OR '$(TargetFramework)' == 'net6.0-android'">
		<PackageReference Include="Plugin.Firebase" Version="2.0.3" />
		<PackageReference Include="Plugin.Firebase.Crashlytics" Version="2.0.1" />
	</ItemGroup>

	<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">
		<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk7" Version="1.7.10" ExcludeAssets="build;buildTransitive" />
		<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="1.7.10" ExcludeAssets="build;buildTransitive" />
	</ItemGroup>

	<ItemGroup>
	  <None Update="google-services.json">
	    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	  </None>
	</ItemGroup>


</Project>

CS1705์—๋Ÿฌ๋Š” ๋‹ค์Œ ์ด์Šˆ, MSB4064์—๋Ÿฌ๋Š” ๋‹ค์Œ ์ด์Šˆ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์ˆ˜์ •ํ•ด๋ณด์„ธ์š” :slight_smile:

1๊ฐœ์˜ ์ข‹์•„์š”

XCODE ์ด์•ผ๊ธฐ ๋‚˜์˜ค๋Š”๊ฑธ ๋ณด๋‹ˆ CS1705๋Š” ๋งฅ๋ถ์—์„œ ์‹คํ–‰ํ•ด์•ผํ• ๊นŒ์š”?
MSB4064๋Š” ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

xcode์™€ ์—ฐ๊ฒฐ๋œ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ์—์„œ ์ž˜ ์‹คํ–‰๋œ๋‹ค๋Š” ์ด์•ผ๊ธฐ์ด๊ณ , ํ•ด๋‹น ๋Œ“๊ธ€์„ ๋”ฐ๋ผ ํ•˜์‹œ๊ณ  iOS๋ฅผ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ windows์—์„œ iOS ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ณด์„ธ์š”

์„ฑ๊ณตํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

1๊ฐœ์˜ ์ข‹์•„์š”