https://kotlinlang.org
Join Slack
Hi, with xcode 26 does anyone is getting this error Warning: Failed to generate cinterop for :shared...
s

Soumen pal

2 months ago
Hi, with xcode 26 does anyone is getting this error Warning: Failed to generate cinterop for sharedcinteropGoogleMapsIosArm64: Process 'command '/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java'' finished with non-zero exit value 1
s
c
f
  • 3
  • 12
  • 500
How do I reference more than one KMM frameworks in the iOS app. I've tried playing with the linker s...
r

Rafs

over 2 years ago
How do I reference more than one KMM frameworks in the iOS app. I've tried playing with the linker settings in XCode but it doesn't seem to be helping. It works if I link the original shared module that was created by Android studio, but anything else doesn't work.
👍 2
r
r
+2
  • 4
  • 19
  • 500
Hello, I’m using ktor client (v1.6.8) and got this exception `java.io.EOFException: Failed to parse ...
a

André Martins

over 3 years ago
Hello, I’m using ktor client (v1.6.8) and got this exception
java.io.EOFException: Failed to parse HTTP response: unexpected EOF
Can’t seem to understand further what happened but from my understanding it seems like it tried to parse the response payload but there wasn’t any.
a
a
c
  • 3
  • 10
  • 500
It seems there is yet another focus regression in compose-ui:1.4 :cold_sweat: ```E java.lang.Illega...
v

vide

over 2 years ago
It seems there is yet another focus regression in compose-ui:1.4 😰
E  java.lang.IllegalStateException: Check failed.
    [Full trace in thread]
   	at androidx.compose.ui.focus.FocusOwnerImpl.moveFocus-3ESFkO8(FocusOwnerImpl.kt:150)
   	at androidx.compose.ui.platform.AndroidComposeView$keyInputModifier$1.invoke-ZmokQxo(AndroidComposeView.android.kt:212)
v
j
  • 2
  • 11
  • 500
The following build commands failed: PhaseScriptExecution Compile\ Kotlin\ Framework /Users/js/Docu...
r

R Suman Radhakrishnan

over 1 year ago
The following build commands failed: PhaseScriptExecution Compile\ Kotlin\ Framework /Users/js/Documents/AppName/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-F36B1CEB2AD83DDC00CB74D5.sh (in target 'iosApp' from project 'iosApp') (1 failure) warning: Run script build phase 'Compile Kotlin Framework' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'iosApp' from project 'iosApp') This error occurs when i try to run the IOS app using Android Studio. _________ 'embedAndSign' task can not be used in a project with dependencies to pods. This error occurs when i try to run that Same IOS app using Xcode.
r
p
  • 2
  • 4
  • 499
```import kotlin.math.PI import kotlin.system.measureTimeMillis fun test1(a : FloatArray) : Float {...
v

Vladimir Vainer

almost 3 years ago
import kotlin.math.PI
import kotlin.system.measureTimeMillis

fun test1(a : FloatArray) : Float {
    val angles = a.map { it.toDegrees() }
    val yaw = angles[0]
    val pitch = angles[1]
    return yaw + pitch
}

fun test2(angles : FloatArray) : Float {
    val yaw = angles[0].toDegrees()
    val pitch = angles[1].toDegrees()
    return yaw + pitch
}

fun Float.toDegrees() : Float {
    return (this * 180 / PI).toFloat()
}


fun main(args: Array<String>) {
    val a = floatArrayOf(0.5f, 0.7f)

    val test2Time = measureTimeMillis {
        var out = 0L
        for (i in 0..1000000) {
            out += test2(a).toLong()
        }
    }
    val test1Time = measureTimeMillis {
        var out = 0L
        for (i in 0..1000000) {
            out += test1(a).toLong()
        }
    }
    println("Test1: $test1Time ms")
    println("Test2: $test2Time ms")
}
Test1: 42 ms Test2: 7 ms Using map is pretty costy. Am i doing something wrong?
v
s
e
  • 3
  • 4
  • 499
Hi! Do you have a KMM project with detekt configured on github? (I mean, open source) I'm starting w...
b

Brais Gabin

over 3 years ago
Hi! Do you have a KMM project with detekt configured on github? (I mean, open source) I'm starting with KMM and I'm not sure if I'm failing on the gradle part, on the detekt configuration or it is just that the experimental support of detekt for KMM is not working in this case.
b
h
+2
  • 4
  • 5
  • 499
Hi there is there alternative to buildKonfig? for multimodular KMM projects?, currently we are faci...
s

Suresh Maidaragi

over 1 year ago
Hi there is there alternative to buildKonfig? for multimodular KMM projects?, currently we are facing issue in multimodular KMM projects
s
m
+2
  • 4
  • 9
  • 498
Hello. I've just noticed there are crashes on my iOS app, and Firebase Crashlytics reporting tells m...
a

AndreiBogdan

over 2 years ago
Hello. I've just noticed there are crashes on my iOS app, and Firebase Crashlytics reporting tells me almost nothing when I look at the stacktrace. How does one debug a crash on iOS that occured in KMM to figure out what went wrong ?! Is there some sort of best practice for this, specifically for iOS ? If there a third party service or something i could use to help out in ?!
a
r
+3
  • 5
  • 28
  • 498
Does anyone successfully used the `testFixtures` feature of the Android Gradle Plugin <introduced in...
t

tseisel

over 3 years ago
Does anyone successfully used the
testFixtures
feature of the Android Gradle Plugin introduced in AGP 7.2.0 ? I can't get it working. Kotlin sources under
testFixtures
does not seem to get compiled. I'm using Kotlin 1.6.21.
t
m
  • 2
  • 3
  • 498
Previous130131132Next

kotlinlang

A modern programming language that makes developers happier.

Powered by