Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Antoine-Soucy committed May 27, 2024
1 parent 785d547 commit 2ba7586
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
<MtouchExtraArgs>$(MtouchExtraArgs) --registrar:static</MtouchExtraArgs>
<!-- See https://github.com/xamarin/xamarin-macios/issues/14812 for more details. -->
<MtouchExtraArgs>$(MtouchExtraArgs) --marshal-objectivec-exceptions:disable</MtouchExtraArgs>
<!-- Required with AdamE.Firebase.iOS.CloudMessaging 10.17+. -->
<MtouchExtraArgs Condition="'$(Platform)'=='iPhone'">$(MtouchExtraArgs) --gcc_flags -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos</MtouchExtraArgs>
<MtouchExtraArgs Condition="'$(Platform)'=='simulator'">$(MtouchExtraArgs) --gcc_flags -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/</MtouchExtraArgs>
<CodesignEntitlements>iOS\Entitlements.plist</CodesignEntitlements>
<!-- Workaround for clang++ error on iOS simulator on ARM base macOS system. See "https://github.com/dotnet/maui/issues/16778#issuecomment-1683343255" for more detail. -->
<ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
Expand Down Expand Up @@ -213,7 +216,7 @@
</Choose>
<ItemGroup>
<PackageReference Include="Uno.Extensions.Logging.OSLog" Version="1.7.0" />
<PackageReference Include="Xamarin.Firebase.iOS.RemoteConfig" Version="8.10.0.3" />
<PackageReference Include="AdamE.Firebase.iOS.RemoteConfig" Version="10.22.0-alpha1" />
</ItemGroup>
<ItemGroup>
<TrimmerRootDescriptor Include="iOS\LinkerExclusions.xml" />
Expand Down Expand Up @@ -281,4 +284,8 @@
</When>
</Choose>
<Import Project="..\ApplicationTemplate.Shared.Views\ApplicationTemplate.Shared.Views.projitems" Label="Shared" />


<!-- Required with AdamE.Firebase.iOS.CloudMessaging https://github.com/AdamEssenmacher/GoogleApisForiOSComponents?tab=readme-ov-file#firebase-analytics -->
<Import Project="..\..\..\LinkWithSwiftSystemLibrariesWorkaround.targets" Condition="'$(TargetFramework)' == 'net7.0-ios'" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

<Project>
<!-- Target needed until LinkWithSwiftSystemLibraries makes it into the SDK: https://github.com/xamarin/xamarin-macios/pull/20463 -->
<Target Name="LinkWithSwift" DependsOnTargets="_ParseBundlerArguments;_DetectSdkLocations" BeforeTargets="_LinkNativeExecutable">
<PropertyGroup>
<_SwiftPlatform Condition="$(RuntimeIdentifier.StartsWith('iossimulator-'))">iphonesimulator</_SwiftPlatform>
<_SwiftPlatform Condition="$(RuntimeIdentifier.StartsWith('ios-'))">iphoneos</_SwiftPlatform>
</PropertyGroup>
<ItemGroup>
<_CustomLinkFlags Include="-L" />
<_CustomLinkFlags Include="/usr/lib/swift" />
<_CustomLinkFlags Include="-L" />
<_CustomLinkFlags Include="$(_SdkDevPath)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/$(_SwiftPlatform)" />
<_CustomLinkFlags Include="-Wl,-rpath" />
<_CustomLinkFlags Include="-Wl,/usr/lib/swift" />
</ItemGroup>
</Target>
</Project>

0 comments on commit 2ba7586

Please sign in to comment.