https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotlin-native
  • m

    mathew

    02/07/2018, 12:06 PM
    Hi All, I am new to Kotlin I have question. Is it possible to create IOS application using Kotlin??
    g
    6 replies · 2 participants
  • s

    Simone Civetta

    02/07/2018, 1:32 PM
    BTW, guys, I’ve been using K/N for creating an iOS framework on a side project and I’m positively surprised 👍: that’s a nice job you did there. I’ll give a talk about that at http://romobos.com next week
    😎 4
    r
    a
    8 replies · 3 participants
  • s

    Simone Civetta

    02/07/2018, 5:14 PM
    question (especially after reading your interesting article @olonho): as far as I understand, workers are not available in Kotlin/JVM... Isn’t that a major cause of incompatibility between Native and JVM implementations?
    k
    o
    5 replies · 3 participants
  • c

    Clint Checketts

    02/07/2018, 7:04 PM
    I love that with Go I can build a simple statically build CLI tool that I can just run without installing anything else. Is there an equivalent ability to do that with Kotlin?
    e
    o
    5 replies · 3 participants
  • t

    Tobi

    02/08/2018, 9:52 AM
    Hello, I just saw that this PR (https://github.com/JetBrains/kotlin-native/pull/1280) got merged, which ads support for multiplatform projects to the gradle plugin. Which
    konan.version
    do I have to use in order to give that a try?
    d
    i
    6 replies · 3 participants
  • e

    evanchooly

    02/08/2018, 2:33 PM
    is my memory correct when it says that kotlin native doesn’t work with c++ shared libs?
    m
    o
    3 replies · 3 participants
  • r

    rellenberger

    02/08/2018, 6:43 PM
    I have CLion installed, however, I am not able to find the Kotlin or Kotlin/Native plugin in the plugin manager. Do I have to download them directly from JetBrains Plugin site?
    o
    b
    4 replies · 3 participants
  • s

    spierce7

    02/08/2018, 7:44 PM
    When is the next kotlin-native release planned? That release should allow for kotlin-native + multiplatform projects right?
    ❓ 1
    o
    1 reply · 2 participants
  • s

    spierce7

    02/09/2018, 1:00 AM
    How would I debug the calculator sample on iOS? https://github.com/JetBrains/kotlin-native/tree/master/samples/calculator
    g
    o
    +2
    11 replies · 5 participants
  • d

    Dmitry Kandalov

    02/09/2018, 9:34 AM
    Hello. I'm sure it's been asked before but I didn't manage to google anything and there is no slack history. I'm trying to do basic C interop with stdio.h and get this:
    $ cinterop -def stdio.def -o build/c_interop/stdio
    KtFile: stdio.kt
    $ konanc src/* build/c_interop/stdio-build/kotlin/stdio/* -library build/c_interop/stdio
    KtFile: stdio.kt
    KtFile: hello.kt
    llvm-lto: error: Linking globals named 'kobjref:stdio.__sbuf.Companion': symbol multiply defined!
    ... kotlin stacktrace
    Is it something I'm doing wrong or it's a known problem?
    o
    3 replies · 2 participants
  • d

    Dmitry Kandalov

    02/09/2018, 9:35 AM
    (also
    konanc -version
    prints
    kotlinc-native 1.2-SNAPSHOT (JRE 1.8.0_152-b16)
    however I'm sure I downloaded kotlin/native from v0.5 release on github, it's a bit confusing why versions are different 😕)
    p
    1 reply · 2 participants
  • t

    Tobi

    02/09/2018, 2:25 PM
    Did you guys already release a new version of the kotlin native gradle plugin? using
    org.jetbrains.kotlin:kotlin-native-gradle-plugin:+
    I get
    Server returned HTTP response code: 403 for URL: <https://download.jetbrains.com/kotlin/native/builds/releases/0.6/macos/kotlin-native-macos-0.6.tar.gz>
    o
    1 reply · 2 participants
  • j

    jmullin

    02/12/2018, 10:42 PM
    Hi! Checking in on callbacks/function-pointers with struct-by-value returns. From the INTEROP.md readme:
    Callbacks
    […]
    Note that some function types are not supported currently. For example, it is not possible to get pointer to function that receives or returns structs by value.
    Is this functionality on the radar/roadmap, or more of a “we’ll get to it someday” status?
    o
    3 replies · 2 participants
  • a

    albertgao

    02/13/2018, 4:24 AM
    I saw the
    0.6
    has been released on the github without a release note. Awesome work, JB team! I suppose the release note will be there soon? 🙂
    o
    1 reply · 2 participants
  • g

    gildor

    02/13/2018, 8:12 AM
    curious how Konan and Kotlin gradle plugin will work together in multiplatform/multimodule setup
    ➕ 1
    i
    a
    29 replies · 3 participants
  • t

    Tobi

    02/13/2018, 5:10 PM
    Given I have a multiplatform project with a
    native
    aka
    iOS
    module. I know that I am able do Objective-C calls from my kotlin code. I can even import classes from the
    UIKit
    etc. . But how does that work? Is it related to the interoperability which generates kotlin bindings based on the specified
    konan.target
    ?
    o
    1 reply · 2 participants
  • r

    rellenberger

    02/14/2018, 3:57 AM
    Hi everyone, do primitives from Kotlin/Native translate correctly to iOS at the moment? I am trying to build a prototype framework and the values set in the framework are not the same that the view is showing.
    o
    r
    5 replies · 3 participants
  • s

    spierce7

    02/14/2018, 1:56 PM
    when is the kotlinx.coroutines going to come out for Kotlin-native?
    🥁 1
    k
    r
    2 replies · 3 participants
  • o

    olonho

    02/14/2018, 7:12 PM
    https://blog.jetbrains.com/kotlin/2018/02/kotlinnative-v0-6-is-here/
    🎉 10
    :kotlin: 3
    ❤️ 3
    👍 14
    t
    6 replies · 2 participants
  • s

    spierce7

    02/15/2018, 4:45 PM
    CLion is telling me that my kotlin-native plugin is deprecated today, tells me to download the plugin from somewhere else, and then tells me the new version isn't compatible with my CLion version (and I try to update CLion, but there are no new updates. Not sure what to do.
    1 reply · 1 participant
  • a

    albertgao

    02/15/2018, 10:31 PM
    Hi, tried that https://github.com/JetBrains/KotlinMultiplatformPlayground Have a problem. I tried adding the following imports to see whether it works or not:
    import platform.Foundation.*
    import platform.UIKit.*
    The Foundation part could pass the build while the UIKit can’t be resolved by gradle. Does it mean that I need to build the UIKit lib on my mac?
    o
    2 replies · 2 participants
  • s

    spierce7

    02/16/2018, 5:30 AM
    @olonho Are there any plans to improve the iOS debugging story? It seems debugging works with lldb console commands, and you can set breakpoints in iOS code using the UI and step into Kotlin code. This is still a really hard sell to my iOS team though. Are there any plans to somehow improve debugging in xcode so that it's more user friendly (may not be possible), or provide a more complete debugging experience in a JetBrains IDE?
    👍 1
    o
    1 reply · 2 participants
  • j

    jkbbwr

    02/16/2018, 11:00 AM
    Anyone know why I can't invoke wasm as a target I just get
    exception: java.nio.file.NoSuchFileException: /opt/kotlin-native/konan/targets/wasm32/native
    as an error
    o
    k
    3 replies · 3 participants
  • y

    yatsinar

    02/18/2018, 11:39 AM
    @Tobi Hi, you mentioned here https://www.novoda.com/blog/kotlin-goes-ios/ “Kotlin/Native comes already with bindings for a few iOS libraries, for example the NSTimer”, could you kindly tell where the list of such bindings/libraries can be found? Cool article and example btw 🙂
    s
    t
    5 replies · 3 participants
  • r

    Rob

    02/19/2018, 2:04 PM
    I'm building a multiplatform project for js/jvm/ios that expects a sealed class. It seems to build fine for JS and JVM but for iOS i'm getting "exception: java.lang.AssertionError: expect class WriteLog: Super class should be any: actual class Operation". Are sealed classes or class hierarchies going to be supported for native compilation? Or is this a bug that should be reported?
    g
    o
    +1
    6 replies · 4 participants
  • y

    yatsinar

    02/19/2018, 7:27 PM
    Are coroutines supposed to work in Native modules? Trying to create my own simple implementation for iOS, this simple declaration alone in Native (or common) module crashes compiler:
    fun launchAsync(context: CoroutineContext, block: suspend () -> Unit) {
        TODO()
    }
    With
    exception: java.lang.Error: Invalid module
            at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule(IrToBitcode.kt:117)
            at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule$default(IrToBitcode.kt:108)
            at org.jetbrains.kotlin.backend.konan.Context.verifyBitCode(Context.kt:313)
            at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4.invoke(KonanDriver.kt:99)
    👍🏼 1
    :youtrack: 1
    o
    s
    2 replies · 3 participants
  • a

    albertgao

    02/20/2018, 4:41 AM
    https://github.com/Albert-Gao/kotlin-native-mobile-multiplatform-example Setup a project of sharing code between iOS and Android with the tests, it’s a little bit different than the others because the
    Shared
    code has
    common
    ,
    ios
    and
    android
    , which I use multiplatform approach for ios and android only. All parts works perfectly now. Thanks for all the help!
    👍 2
    v
    r
    +2
    10 replies · 5 participants
  • k

    kikitux

    02/20/2018, 7:44 AM
    hello, any rtm pointer to an example where i can pass kotlin type and populate in C and use it back in kotlin ?
    o
    9 replies · 2 participants
  • d

    david.bilik

    02/20/2018, 2:58 PM
    @Simone Civetta hello, i try to build ios framework in your project but I get an error
    Undefined symbols for architecture arm64:
      "_BZ2_bzBuffToBuffCompress", referenced from:
          _platform_darwin_kniBridge94 in combined9019262925519514267.o
      "_BZ2_bzBuffToBuffDecompress", referenced from:
          _platform_darwin_kniBridge95 in combined9019262925519514267.o
      "_BZ2_bzCompress", referenced from:
          _platform_darwin_kniBridge81 in combined9019262925519514267.o
      "_BZ2_bzCompressEnd", referenced from:
          _platform_darwin_kniBridge82 in combined9019262925519514267.o
      "_BZ2_bzCompressInit", referenced from:
          _platform_darwin_kniBridge80 in combined9019262925519514267.o
      "_BZ2_bzDecompress", referenced from:
          _platform_darwin_kniBridge84 in combined9019262925519514267.o
      "_BZ2_bzDecompressEnd", referenced from:
          _platform_darwin_kniBridge85 in combined9019262925519514267.o
      "_BZ2_bzDecompressInit", referenced from:
          _platform_darwin_kniBridge83 in combined9019262925519514267.o
      "_BZ2_bzRead", referenced from:
          _platform_darwin_kniBridge89 in combined9019262925519514267.o
      "_BZ2_bzReadClose", referenced from:
          _platform_darwin_kniBridge87 in combined9019262925519514267.o
      "_BZ2_bzReadGetUnused", referenced from:
          _platform_darwin_kniBridge88 in combined9019262925519514267.o
      "_BZ2_bzReadOpen", referenced from:
          _platform_darwin_kniBridge86 in combined9019262925519514267.o
      "_BZ2_bzWrite", referenced from:
          _platform_darwin_kniBridge91 in combined9019262925519514267.o
      "_BZ2_bzWriteClose", referenced from:
          _platform_darwin_kniBridge92 in combined9019262925519514267.o
      "_BZ2_bzWriteClose64", referenced from:
          _platform_darwin_kniBridge93 in combined9019262925519514267.o
      "_BZ2_bzWriteOpen", referenced from:
          _platform_darwin_kniBridge90 in combined9019262925519514267.o
      "_BZ2_bzclose", referenced from:
          _platform_darwin_kniBridge102 in combined9019262925519514267.o
      "_BZ2_bzdopen", referenced from:
          _platform_darwin_kniBridge98 in combined9019262925519514267.o
      "_BZ2_bzerror", referenced from:
    
     ...
    ld: symbol(s) not found for architecture arm64
    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
    :slideparser-ios:compileKonanKotlinSlideParserIphone_sim FAILED
    is it some known issue or i am doing something wrong?
    s
    6 replies · 2 participants
  • r

    Ruckus

    02/21/2018, 6:36 PM
    When Kotlin/Native hits GA, will it match the main Kotlin version or will it continue under its own release cycle?
    o
    1 reply · 2 participants
Powered by Linen
Title
r

Ruckus

02/21/2018, 6:36 PM
When Kotlin/Native hits GA, will it match the main Kotlin version or will it continue under its own release cycle?
o

olonho

02/21/2018, 7:01 PM
Not sure if I could comment on that
View count: 4