Hello, I am working on an open source project, whi...
# kotlin-native
q
Hello, I am working on an open source project, which is a client relying on
ktor
. I am trying to add an ios target, and run into this exception when trying to build. You can reproduce for yourself by checking out the
feature/ios
branch of https://github.com/algolia/algoliasearch-client-kotlin
cc @ribesg
Note that I also ran into this problem prior: https://github.com/JetBrains/kotlin-native/issues/3087 And used the workaround:
"-Xdisable-phases=Devirtualization"
o
for me
/Users/nikolay.igotti/kotlin/algoliasearch-client-kotlin/src/commonMain/kotlin/com/algolia/search/configuration/HttpClient.kt: (3, 8): Unresolved reference: BuildConfig
happens
q
you can run
./gradlew generateMetadataBuildConfigKotlin
o
q
Ok thanks for the insights !
a
I think, this ticket is about the same issue: https://youtrack.jetbrains.com/issue/KT-32475 Can’t figure out, how to apply this fix to your situation, but maybe you can check it by yourself @qlitzler