Share via

What does IsCxx option do when using iOS .a static libraries/NativeReferences ?

Toine de Boer 20 Reputation points
2025-04-03T18:22:44.9566667+00:00

Im using an iOS .a library and Im not sure what kind of code it contains, C++ or ?

So I tried the playing with the setting 'IsCxx' but nothing happens.

  • everything keeps on working
  • package size stays the same
<ItemGroup>        
   <NativeReference Include="..\libraries\libxxxx.a">            
      <Kind>Static</Kind>
      <Frameworks>Accelerate</Frameworks>              
      <!-- Specifies whether or not the native library is a C++ library. -->
      <IsCxx>False</IsCxx>
      <SmartLink>False</SmartLink>
      <WeakFrameworks></WeakFrameworks>
      <ForceLoad>True</ForceLoad>
      <NeedsGccExceptionHandling>False</NeedsGccExceptionHandling>
   ...

So does IsCxx do anything in the context above, does it have performance gains or .... what does it do?

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

Bruce (SqlWork.com) 84,086 Reputation points
2025-04-03T19:58:35.0266667+00:00

IOS native libraries are typically written in objective-c or swift with an objective-c wrapper. If the library is c++, it may require an additional initialization. The IsCxx adds this code.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.