y

    yusuf3000

    4 years ago
    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.
    ilya.gorbunov

    ilya.gorbunov

    4 years ago
    Better to ask in #kotlin-native
    s

    Sam

    4 years ago
    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:
    konan.targets = [ 'iphone', 'iphone_sim']