skip to Main Content

When I was using Xcode 14, I didn’t encounter any warnings. However, after updating to Xcode 15, I suddenly started receiving over 200 warnings from third-party libraries. Does anyone know the reason for this or how to address these warnings without having to wait for the libraries to be updated? It appears that these warnings are related to the use of Objective-C in the libraries.

Warning like it:
Mixed ObjC ABI, /Users/wanghong/Developer/alpaca/Pods/AppsFlyerFramework/iOS/AppsFlyerLib.framework/Versions/A/AppsFlyerLib[x86_64][26](AppsFlyerAES128Crypto.o) compiled with category class properties

enter image description here

2

Answers


  1. on Build Settings -> Link -> Other Link Flags, you can add -ld64 or -ld_classic

    Login or Signup to reply.
  2. For Xamarin.iOS projects, you can also use the classic linker, as suggested by @david’s answer:

    1. Right-click on your iOS .csproj
    2. Choose "Properties"
    3. Under Build -> iOS -> Build, add -gcc_flags "-Xlinker -ld_classic" to the "Additional arguments:" field. Make sure you have done this for the correct Platform & Configuration.

    Alternatively, you can add

    <MtouchExtraArgs>-gcc_flags "-Xlinker -ld_classic"</MtouchExtraArgs>
    

    to any desired <PropertyGroup> in your iOS .csproj.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search