Weird KMP bug on iOS: Defining `const val DEBUG = ...
# multiplatform
r
Weird KMP bug on iOS: Defining
const val DEBUG = "debug"
(under an object called
Paths
, not even top-level) causes this build error, I guess it's conflicting with some reserved stuff? (Resolved via renaming the property)
m
My guess would be that DEBUG is a C macro in the Objective-C code to tell if you are using a DEBUG build or not and it is being replaced there with a 0 or a 1. But that is just a guess.
👍 1