Native Frameworks

kierkier Member ✭✭

I have a bindings project and the linkwith file contains

[assembly: LinkWith("libboringssl.a",
    LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Simulator64 | LinkTarget.Arm64,
    Frameworks = "SystemConfiguration AudioToolbox AVFoundation CoreTelephony PushKit CallKit",
    LinkerFlags = "-ObjC",
    SmartLink = true,
    ForceLoad = true)]

The project builds and is then referenced in a separate project but when Xamarin.iOS project tries compiling to native it throws MT5210 errors.

Do I somehow need to include/reference the native frameworks above?

Best Answer

Answers

  • kierkier Member ✭✭

    Thanks Lucas, I'll try it now. My additoinal mtouch arguments already has --registrar:static so would this become

    --registrar:static -cxx -gcc_flags "-lc++"
    
    
Sign In or Register to comment.