AdamEssenmacher / GoogleApisForiOSComponents

A community-supported fork of the abandoned Xamarin.iOS.* binding libraries from Microsoft
MIT License
64 stars 13 forks source link

iOS Release Build crashes on start #54

Closed rezamohamed closed 3 weeks ago

rezamohamed commented 3 weeks ago

My app works fine on debug, but when I Run a release build, the app starts and immediately crashes with the following error:

10.29.0 - [FirebaseSessions][I-SES000000] Sessions SDK did not have any dependent SDKs register as dependencies. Events will not be sent.

=================================================================
    Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

My Debug and Release configs are as follows. Note: on release I have tried turning on and off various options but still not working.

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
    <ApplicationTitle>My App name</ApplicationTitle>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
    <ApplicationTitle>My App name</ApplicationTitle>
<!--    <Optimize>False</Optimize>-->
<!--    <MtouchLink>None</MtouchLink>-->
<!--    <MtouchUseLlvm>False</MtouchUseLlvm>-->
<!--      <UseInterpreter>True</UseInterpreter>-->
     <MtouchUseLlvm>True</MtouchUseLlvm>
    <!-- Ensure code is not AOT compiled as debug -->
    <MtouchEnableAot>true</MtouchEnableAot>
    <MtouchLink>SdkOnly</MtouchLink>

    <RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
    <CodesignEntitlement>Entitlements.plist</CodesignEntitlement>
    <CodesignKey>** REMOVED ***</CodesignKey>
    <CodesignProvision>** REMOVED ***</CodesignProvision>
  </PropertyGroup>
rezamohamed commented 3 weeks ago

Closing - I think this is related to something else