Skip to content

Commit

Permalink
fix (Laerdal.Dfu.Bindings.iOS.csproj): use Optimized=false to workaro…
Browse files Browse the repository at this point in the history
…und a bug in net8 which is causing maui apps to crash upon getting launched in iPhones

    this wasnt necessary in net7 but somehow it became crucial under net8 (go figure ...)
  • Loading branch information
ksidirop-laerdal committed May 23, 2024
1 parent e45ec0f commit 65c9be4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Laerdal.Dfu.Bindings.iOS/Laerdal.Dfu.Bindings.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@

<PropertyGroup>
<TargetFramework>net8.0-ios</TargetFramework>

<MtouchExtraArgs>-v -v -v -v</MtouchExtraArgs>

<IsBindingProject>true</IsBindingProject>

<IsOSX Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true' ">true</IsOSX>
</PropertyGroup>

<PropertyGroup>
<DebugType>full</DebugType>
<Optimized>false</Optimized>
<MtouchExtraArgs>-v -v -v -v</MtouchExtraArgs>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>

<!-- https://github.com/Laerdal/Laerdal.Dfu/issues/29#issuecomment-1904057544 -->
<NoBindingEmbedding>true</NoBindingEmbedding>
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>

<IsOSX Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true' ">true</IsOSX>
<!-- 1. under net8 we need Optimized=false otherwise release builds cause the resulting apps to crash right upon getting launched in the iphone! -->
<!-- 2. NoBindingEmbedding=true per https://github.com/Laerdal/Laerdal.Dfu/issues/29#issuecomment-1904057544 -->
</PropertyGroup>

<!-- ==================== VERSION ==================== -->
Expand Down

0 comments on commit 65c9be4

Please sign in to comment.