Skip to content

Commit 9a08c72

Browse files
committed
Force composite Mach-O for apple mobile
1 parent 9db182f commit 9a08c72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
<UseLocalCrossgen2Pack>$(PublishReadyToRun)</UseLocalCrossgen2Pack>
3131
</PropertyGroup>
3232

33+
<!-- Use the Mach-O format for Apple mobile platforms as we can't load native code from PE files on these platforms -->
34+
<PropertyGroup Condition="'$(TargetsAppleMobile)' == 'true'">
35+
<ForcePublishReadyToRunComposite>true</ForcePublishReadyToRunComposite>
36+
<PublishReadyToRunContainerFormat>macho</PublishReadyToRunContainerFormat>
37+
</PropertyGroup>
38+
3339
<Import Project="Microsoft.NETCore.App.Runtime.props" />
3440

3541
<PropertyGroup>

0 commit comments

Comments
 (0)