Should I change my expectations? When building on ...
# ksp
r
Should I change my expectations? When building on a Linux machine and referencing UIKit imports in KMP projects KSP used to be fine, but with the latest version I get this:
Copy code
Execution failed for task ':sample:app:kspKotlinIosSimulatorArm64'.
> A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction
   > Error type '<ERROR TYPE: UIApplication>' is not resolvable in the current round of processing.
MacOS as host is fine. The concern I have is that I need to disable Apple flavors depending on the host machine.
t
Could be a regression if it used to be working. May I ask for a test case?
r
It certainly used to work. For now I can point to this PR: https://github.com/amzn/kotlin-inject-anvil/pull/54 It’s really just a matter of referencing an iOS specific class like here. This file triggers the error.
t
Quick question: by "it used to be fine", did you mean KSP1 vs KSP2, or 1.0.25 vs 1.0.26 with KSP1, or 1.0.25 vs 1.0.26 with KSP2? It looks like to me that the PR changed from 1.0.25 KSP1 to 1.0.26 KSP2. Is that correct?
r
I created a separate PR with 1.0.25 and KSP2 and the issue didn’t exist: https://github.com/amzn/kotlin-inject-anvil/pull/69 So it’s definitely a regression between 1.0.25 -> 1.0.26.
👍 1
👍🏾 1