Sharpie binding error : Unsupported clang availability platform: 'macCatalyst'

276 Views Asked by At

I'm trying to bind a framework into my Xamarin iOS project using this command:

sharpie bind -output FrameworkName -namespace FrameworkName -sdk iphoneos13.2 -scope Headers FrameworkName.framework/Headers/HeaderFile.h -c IHeaders -arch arm64

I got this error:

System.Exception: Unsupported clang availability platform: 'macCatalyst'

I have the latest Mac OS Catalina, the latest XcCode version 11.3.1, and the 3.4.0 Sharpie version.

Is there a way to solve this without downgrading the OS?

1

There are 1 best solutions below

0
Junior Jiang On

About Mac Catalyst , you can have a check whehther library project select this option : Mac (requires macOS 10.15)

enter image description here

If so unselect it , and rebuild project to use sharpie binding .