Daniel Seither
11/06/2023, 11:59 AM./gradlew lib:iosSimulatorArm64Test
):
Task liblinkDebugTestIosSimulatorArm64FAILED
e: Compilation failed: lateinit property declarationBuilder has not been initialized
* Source files:
* Compiler version: 1.9.10
* Output kind: PROGRAM
e: kotlin.UninitializedPropertyAccessException: lateinit property declarationBuilder has not been initialized
at co.touchlab.skie.context.MainSkieContext.getDeclarationBuilder(MainSkieContext.kt:77)
at co.touchlab.skie.context.KotlinIrPhaseContext.<init>(KotlinIrPhaseContext.kt:27)
at co.touchlab.skie.entrypoint.SkieIrGenerationExtension.generate(SkieIrGenerationExtension.kt:13)
at org.jetbrains.kotlin.backend.konan.PsiToIrKt.psiToIr$lambda$16(PsiToIr.kt:212)
at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:107)
at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment$default(Psi2IrTranslator.kt:84)
at org.jetbrains.kotlin.backend.konan.PsiToIrKt.psiToIr(PsiToIr.kt:217)
at org.jetbrains.kotlin.backend.konan.driver.phases.PsiToIrKt$PsiToIrPhase$2.invoke(PsiToIr.kt:102)
[…]It works fine with SKIE 0.5.2. Is this likely to be something that we need to fix in the Gradle config, or does this look like a bug in SKIE?
Filip Dolník
11/06/2023, 1:58 PMDaniel Seither
11/06/2023, 1:59 PMFilip Dolník
11/07/2023, 7:54 AMDaniel Seither
11/07/2023, 8:52 AMSamuele Perricone
11/07/2023, 12:58 PMDamiano Giusti
11/07/2023, 1:05 PMlinkDebugFrameworkIosArm64
fails, in the error message it lists a lot of errors like these, and then prints a stacktrace. I attached everything to the snippet.
I don’t have issues locally on my Mac, but when I try to build the project on a Bitrise machine with the M1 stack I get this error. I tried to clean the build cache just to be sure that the Skie version bump on the same branch didn’t cause issues. The M1 machine runs Xcode 14.3.1Filip Dolník
11/07/2023, 1:12 PMDamiano Giusti
11/07/2023, 1:38 PMFilip Dolník
11/07/2023, 1:48 PMSamuele Perricone
11/07/2023, 2:15 PMFilip Dolník
11/07/2023, 2:40 PMSamuele Perricone
11/07/2023, 2:51 PMFilip Dolník
11/07/2023, 2:54 PM