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?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,111 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 75,641 Reputation points Moderator
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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