Native iOS lib seems to be trimmed when Release build used #25869
-
Hi, I'm trying to use native iOS library It works well in I saw these errors previously, they appear when you try for example run iOS simulator with How lib connected to app: <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<AdditionalArgs>-cxx -gcc_flags "-L${ProjectDir} -iosLib -force_load ${ProjectDir}/iosLib.a"</AdditionalArgs>
</PropertyGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<NativeReference Include="Platforms\iOS\libs\device\iosLib.a" Kind="Static">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</NativeReference>
</ItemGroup> What I tried:
The questions are:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You just have to look carefully through build output. I found that <PropertyGroup Condition="'$(Configuration)' == 'Release' and $(RuntimeIdentifier) == 'ios-arm64'">
<MtouchExtraArgs>--gcc_flags "-framework Accelerate"</MtouchExtraArgs>
</PropertyGroup> |
Beta Was this translation helpful? Give feedback.
You just have to look carefully through build output. I found that
Accelerate
framework was automatically linked fordebug
, but missed forrelease
. Had to link it manually forrelease
: