Skip to content

Commit ea0f813

Browse files
skottmckayshamaksx
authored andcommitted
Add short term workaround to issue with iOS publish where the CoreML frameworks is not added to the link list. Pending real fix from MAUI folks. (microsoft#131)
Also update ORT to 1.12.1 which has a better Android build.
1 parent d56abe4 commit ea0f813

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

mobile/examples/Maui/MauiVisionSample/MauiVisionSample/MauiVisionSample.csproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@
2626
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
2727
<DefaultLanguage>en</DefaultLanguage>
2828
</PropertyGroup>
29-
29+
30+
<!--
31+
Short term workaround for issue with publishing the iOS IPA by manually adding CoreML to the frameworks we link against.
32+
https://github.com/microsoft/onnxruntime/issues/12420
33+
-->
34+
<Target Name="AddCoreML" Condition="'$(TargetFramework)' == 'net6.0-ios'" AfterTargets="_LoadLinkerOutput" BeforeTargets="_ComputeLinkNativeExecutableInputs">
35+
<ItemGroup>
36+
<_LinkerFrameworks Include="CoreML" />
37+
</ItemGroup>
38+
</Target>
39+
3040
<ItemGroup>
3141
<!-- App Icon -->
3242
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
@@ -45,7 +55,7 @@
4555
</ItemGroup>
4656

4757
<ItemGroup>
48-
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.12.0" />
58+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.12.1" />
4959
<PackageReference Include="SkiaSharp" Version="2.88.0" />
5060
</ItemGroup>
5161

0 commit comments

Comments
 (0)