https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
t

Tim Ortel

08/04/2022, 2:48 PM
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

Landry Norris

08/04/2022, 3:03 PM
What XCode versions does the library have support for?
t

Tim Ortel

08/04/2022, 3:04 PM
• 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

Landry Norris

08/04/2022, 3:07 PM
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?
14 Views