I’ve got a `import platform.UIKit.*` at a top of a...
# multiplatform
y
I’ve got a
import platform.UIKit.*
at a top of a kotlin file in my iOS module of my multiplatform project, but i’m getting an unresolved reference when gradle runs
:platforms:ios:compileKonanTest-libraryMacbook
. I’ve looked online and can’t see where I’m going wrong.
i
Better to ask in #kotlin-native
s
Macbook would be the target for MacOS. UIKit is only available on iOS devices. If you want to compile something that can run in the simulator and on a device use:
Copy code
konan.targets = [ 'iphone', 'iphone_sim']