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:
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!