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
2
Answers
on Build Settings -> Link -> Other Link Flags, you can add -ld64 or -ld_classic
For Xamarin.iOS projects, you can also use the classic linker, as suggested by @david’s answer:
-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
to any desired
<PropertyGroup>
in your iOS .csproj.