Skip to content

Commit aa0ed1b

Browse files
Update Dotnet iOS Export Process
Update iOS export to allow for hybrid globalization introduced in .NET 9 while preserving .NET 8 settings. Also allows for custom ICU or no ICU.
1 parent e1b4101 commit aa0ed1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/iOSNativeAOT.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
<Target Name="PrepareBeforeIlcCompile"
1616
BeforeTargets="IlcCompile">
1717

18-
<Copy SourceFiles="%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat" DestinationFolder="$(PublishDir)"/>
18+
<PropertyGroup>
19+
<IcuTargetDir>%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat</IcuTargetDir>
20+
<IcuEnabled Condition="Exists('$(IcuTargetDir)')">true</IcuEnabled>
21+
</PropertyGroup>
22+
23+
<Copy SourceFiles="$(IcuTargetDir)" DestinationFolder="$(PublishDir)" Condition=" '$(IcuEnabled)' == 'true' "/>
1924

2025
<!-- We need to find the path to Xcode so we can set manual linker args to the correct SDKs
2126
Once https://github.com/dotnet/runtime/issues/88737 is released, we can take this out

0 commit comments

Comments
 (0)