I just ran into a weird issue with Skie (I'm using...
# touchlab-tools
b
I just ran into a weird issue with Skie (I'm using version
0.9.0-RC3
with Kotlin 2.0.20) in a fairly basic kmp app. I have resolved it, but wanted to post here in case it's a bigger issue. I have default arguments enabled:
Copy code
DefaultArgumentInterop.Enabled(true)
Everything has been working fine for several days. Today, I made a small change in the kotlin code, editing a string literal. Then, when I went to build my iOS app, I got 51 errors related to Skie Default Arguments. It was basically the same error that was reported here: https://github.com/touchlab/SKIE/issues/88 (this defect was fixed in 0.8.3) I tried the usual things ... cleaned my build folder, cleared Xcode's derived data folder for the project, restarted Xcode, etc etc. But the issue persisted ... I finally was able to resolve it by doing the following: 1. Remove the
DefaultArgumentInterop.Enabled(true)
from my shared module config 2. Update all of my swift code to provide all of the (now missing) arguments (luckily, this is a tiny project, so it was only a few places to touch). 3. Build my ios app... success. 4. Re-enable Default Arguments in my shared module config. 5. Undo the changes in my swift code. 6. Build my ios app again .. success!
f
Hi! By any chance do you use the experimental incremental compilation for Kotlin native?
b
@Filip Dolník I don't
f
Do you have some examples of the errors? Most importantly which modules were affected?
b
let me see. Hopefully Xcode still has the old build logs available ... if not, I could try to reproduce it.
doh! Xcode doesn't have the build logs anymore. When you say "which modules were affected", what do you mean? I only have one one shared module in the project.
f
I mean Kotlin/Gradle modules and dependencies
b
ah ok. So yeah, this is a very basic project. I created it using the "Kotlin Multiplatform App" template in Android Studio (Koala), so it set up a shared module, an android app, and an ios app. I have added several dependencies. Specifically, I am using ktor for networking. I do recall several of the errors mentioning ktor.
perhaps not a coincidence, the string that I changed was in a request body that get's sent with ktor ...
If I get it to happen again, I'll capture the logs
@Filip Dolník I ran into this issue again. I was in a big hurry at the time, so I didn't have much time to diagnose/debug it, but I did take a quick screenshot of the error output in Xcode:
f
yeah, this seems to be again an issue with the library caching. Can you please open a new issue in Github?
b
Sure thing
@Filip Dolník Issue created. Let me know if you want/need any more detail in there https://github.com/touchlab/SKIE/issues/111
f
Thanks
t
Hey @Bradleycorn, could you share your Gradle configuration? I want to reproduce this issue so it'd help a lot!
b
@Tadeas Kriz I'll send you a DM
Hi everyone. I was curious if there has been any progress on this issue where we get xcode build errors occasionally that are related to enabling default argument interop with SKIE. We're still experiencing this issue with the latest version of SKIE (
0.10.0
),