https://kotlinlang.org logo
y

yusuf3000

03/25/2018, 1:10 PM
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

ilya.gorbunov

03/25/2018, 8:42 PM
Better to ask in #kotlin-native
s

Sam

03/26/2018, 4:03 AM
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']
58 Views