I am working with cinterops on my M1 Mac. I am wri...
# kotlin-native
t
I am working with cinterops on my M1 Mac. I am writing my .def file, but the compilation fails with: All supported Xcode versions should support objc_fixed_enum. The line triggering this error is in one of the header files I am using, GPBBootstrap.h from Objective-C Protobuf:
Copy code
#if !__has_feature(objc_fixed_enum)
 #error All supported Xcode versions should support objc_fixed_enum.
#endif
Can I enable this support in my .def file? Sorry if this is not the right place to ask this question.
l
What XCode versions does the library have support for?
t
• According to their Github Page: Xcode 10.3 (or later).
I was wondering, if I maybe have to add some kind of argument to the compileOptions in the .def file.
l
I wonder if this is because cinterop uses a separate toolchain that provides a raw compiler (at least for C/C++). I wonder if it doesn’t use xcodebuild for Objective-C?