Repository navigation
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:
|
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> |
You just have to look carefully through build output. I found that
Accelerateframework was automatically linked fordebug, but missed forrelease. Had to link it manually forrelease: