Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening input file /var/folders/y2/....../TemporaryDirectory/..... #40

Closed
rs-georg opened this issue Nov 7, 2023 · 23 comments
Closed

Comments

@rs-georg
Copy link

rs-georg commented Nov 7, 2023

What is the problem?

When building the project using Xcode a huge amount of errors occur all related to missing files or directories.
E.g.

  • error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.mIIF4u/RuntimeKotlin.SkieColdFlowIterator-1.bc' (No such file or directory)
  • error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.mIIF4u/Resources.Skie-1.bc' (No such file or directory)
  • error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.mIIF4u/Resources.StringDesc.LocaleType-1.bc' (No such file or directory)

When does the problem occur?

The errors occur when building with Xcode. According to the build log this Gradle task fails
:shared:linkPodDebugFrameworkIosSimulatorArm64

What has changed since the last time SKIE worked in your project?

Using Kotlin 1.9.10 and SKIE 0.4.20 worked without any issues.
Cleaning the build caches did not help.

What versions of SKIE, Kotlin, and Gradle do you use?

  • SKIE 0.5.5
  • Kotlin 1.9.20
  • Gradle 8.4
  • Xcode 14.3.1

What is your SKIE Gradle configuration?

skie {
    analytics {
        disableUpload.set(true)
    }
}

Stack Trace

Here is the Gradle stack trace. Please note, some lines were removed to prevent leaking information about the project

> Task :shared:linkPodDebugFrameworkIosSimulatorArm64 FAILED
e: Compilation failed: The /Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc command returned non-zero exit code: 1.
output:
remark: Incremental compilation has been disabled: is not currently compatible with embedding LLVM IR bitcode
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.Skie_SuspendResult-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.SkieColdFlowIterator-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.SuspendingTransacter-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.QueryResult-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Resources.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Resources.StringDesc.LocaleType-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.TransacterBase-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalMutableSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.AsyncStreamDispatcherDelegate-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalStateFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftStateFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.FlowConversions-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalMutableStateFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SwiftCoroutineDispatcher-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftMutableSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/StatelyConcurrency.Skie-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.LazyThreadSafetyMode-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.SuspendFunction1-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Parcelize.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftFlowIterator-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftMutableStateFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Graphics.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.FlowCollector-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.Flow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Level-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Kind-1.bc' (No such file or directory)

 * Source files:
 * Compiler version: 1.9.20
 * Output kind: FRAMEWORK

e: java.lang.IllegalStateException: The /Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc command returned non-zero exit code: 1.
output:
remark: Incremental compilation has been disabled: is not currently compatible with embedding LLVM IR bitcode
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.Skie_SuspendResult-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.SkieColdFlowIterator-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/RuntimeKotlin.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.SuspendingTransacter-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.QueryResult-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Resources.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Resources.StringDesc.LocaleType-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Runtime.TransacterBase-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalMutableSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.AsyncStreamDispatcherDelegate-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalStateFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftStateFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.FlowConversions-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalMutableStateFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SwiftCoroutineDispatcher-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftMutableSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftOptionalSharedFlow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/StatelyConcurrency.Skie-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.LazyThreadSafetyMode-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.SuspendFunction1-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Parcelize.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftFlowIterator-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Skie.SkieSwiftMutableStateFlow-1.bc' (No such file or directory)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Stdlib.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/Graphics.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.FlowCollector-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.Flow-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KotlinxCoroutinesCore.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Skie-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Level-1.bc' (No such file or directory)
error: backend command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file '/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp/KoinCore.Kind-1.bc' (No such file or directory)
        at co.touchlab.skie.util.Command.handleExitCode(Command.kt:102)
        at co.touchlab.skie.util.Command.execute(Command.kt:85)
        at co.touchlab.skie.util.Command.execute$default(Command.kt:57)
        at co.touchlab.skie.phases.swift.CompileSwiftPhase.callSwiftCompiler(CompileSwiftPhase.kt:137)
        at co.touchlab.skie.phases.swift.CompileSwiftPhase.execute(CompileSwiftPhase.kt:43)
        at co.touchlab.skie.phases.swift.CompileSwiftPhase.execute(CompileSwiftPhase.kt:12)
        at co.touchlab.skie.phases.util.SkiePhaseGroup$run$1$1$1.invoke(SkiePhaseGroup.kt:22)
        at co.touchlab.skie.phases.util.SkiePhaseGroup$run$1$1$1.invoke(SkiePhaseGroup.kt:21)
        at co.touchlab.skie.phases.analytics.performance.SkiePerformanceAnalytics$Producer.log(SkiePerformanceAnalytics.kt:35)
        at co.touchlab.skie.phases.util.SkiePhaseGroup.run(SkiePhaseGroup.kt:21)
        at co.touchlab.skie.phases.SkiePhaseScheduler.runSirPhases(SkiePhaseScheduler.kt:147)
        at co.touchlab.skie.entrypoint.EntrypointUtils.runSirPhases(EntrypointUtils.kt:51)
        at co.touchlab.skie.entrypoint.CreateObjCExportCodeSpecPhaseInterceptor.intercept(CreateObjCExportCodeSpecPhaseInterceptor.kgp_1.9.0.kt:28)
        at co.touchlab.skie.entrypoint.CreateObjCExportCodeSpecPhaseInterceptor.intercept(CreateObjCExportCodeSpecPhaseInterceptor.kgp_1.9.0.kt:12)
        at co.touchlab.skie.compilerinject.interceptor.ErasedPhaseInterceptorChain$chainedInterceptors$2$erasedInterceptors$1$1.invoke(ErasedPhaseInterceptorChain.kt:12)
        at co.touchlab.skie.compilerinject.interceptor.ErasedPhaseInterceptorChain$chainedInterceptors$2$erasedInterceptors$1$1.invoke(ErasedPhaseInterceptorChain.kt:12)
        at co.touchlab.skie.compilerinject.interceptor.ErasedPhaseInterceptorChain.invoke(ErasedPhaseInterceptorChain.kt:19)
        at co.touchlab.skie.compilerinject.interceptor.ErasedPhaseInterceptorChain.invoke(ErasedPhaseInterceptorChain.kt:6)
        at co.touchlab.skie.compilerinject.interceptor.InterceptedPhaseBody.invoke(SimpleNamedPhaseInterceptorConfigurer.kt:55)
        at co.touchlab.skie.compilerinject.interceptor.InterceptedPhaseBody.invoke(SimpleNamedPhaseInterceptorConfigurer.kt:47)
        at org.jetbrains.kotlin.backend.konan.driver.phases.PhaseBuildersKt$createSimpleNamedCompilerPhase$1.phaseBody(PhaseBuilders.kt:32)
        at org.jetbrains.kotlin.backend.common.phaser.SimpleNamedCompilerPhase.phaseBody(CompilerPhase.kt:207)
        at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
        at org.jetbrains.kotlin.backend.konan.driver.PhaseEngine.runPhase(Machinery.kt:139)
        at org.jetbrains.kotlin.backend.konan.driver.PhaseEngine.runPhase$default(Machinery.kt:130)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver$produceObjCFramework$1.invoke(DynamicCompilerDriver.kt:69)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver$produceObjCFramework$1.invoke(DynamicCompilerDriver.kt:68)
        at org.jetbrains.kotlin.backend.konan.driver.phases.TopLevelPhasesKt.runPsiToIr(TopLevelPhases.kt:50)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver.produceObjCFramework(DynamicCompilerDriver.kt:68)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver.access$produceObjCFramework(DynamicCompilerDriver.kt:31)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver$run$1$1$1.invoke(DynamicCompilerDriver.kt:42)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver$run$1$1$1.invoke(DynamicCompilerDriver.kt:36)
        at org.jetbrains.kotlin.backend.konan.driver.PhaseEngine$Companion$startTopLevel$topLevelPhase$1.phaseBody(Machinery.kt:98)
        at org.jetbrains.kotlin.backend.konan.driver.PhaseEngine$Companion$startTopLevel$topLevelPhase$1.phaseBody(Machinery.kt:92)
        at org.jetbrains.kotlin.backend.common.phaser.SimpleNamedCompilerPhase.phaseBody(CompilerPhase.kt:207)
        at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
        at org.jetbrains.kotlin.backend.konan.driver.PhaseEngine$Companion.startTopLevel(Machinery.kt:105)
        at org.jetbrains.kotlin.backend.konan.driver.DynamicCompilerDriver.run(DynamicCompilerDriver.kt:36)
        at org.jetbrains.kotlin.backend.konan.KonanDriver.run(KonanDriver.kt:118)
        at org.jetbrains.kotlin.cli.bc.K2Native.runKonanDriver(K2Native.kt:151)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:69)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:36)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:79)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:43)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:180)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$mainNoExitWithRenderer$1.invoke(K2Native.kt:188)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$mainNoExitWithRenderer$1.invoke(K2Native.kt:187)
        at org.jetbrains.kotlin.util.UtilKt.profileIf(Util.kt:22)
        at org.jetbrains.kotlin.util.UtilKt.profile(Util.kt:16)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion.mainNoExitWithRenderer(K2Native.kt:187)
        at org.jetbrains.kotlin.cli.bc.K2NativeKt.mainNoExitWithGradleRenderer(K2Native.kt:205)
        at org.jetbrains.kotlin.cli.utilities.MainKt$daemonMain$1.invoke(main.kt:51)
        at org.jetbrains.kotlin.cli.utilities.MainKt$daemonMain$1.invoke(main.kt:51)
        at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:20)
        at org.jetbrains.kotlin.cli.utilities.MainKt.inProcessMain(main.kt:58)
        at org.jetbrains.kotlin.cli.utilities.MainKt.daemonMain(main.kt:51)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.runInProcess(KotlinToolRunner.kt:198)
        at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.run(KotlinToolRunner.kt:135)
        at org.jetbrains.kotlin.compilerRunner.KotlinNativeToolRunner.run(nativeToolRunners.kt:146)
        at org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink$compile$1.invoke(KotlinNativeLink.kt:414)
        at org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink$compile$1.invoke(KotlinNativeLink.kt:364)
        at org.jetbrains.kotlin.compilerRunner.ReportUtilsKt.addBuildMetricsForTaskAction(reportUtils.kt:276)
        at org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink.compile(KotlinNativeLink.kt:364)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
        at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:78)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
        at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:179)
        at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
        at org.gradle.internal.Either$Right.fold(Either.java:175)
        at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:77)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:38)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:108)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:86)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:78)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
@FilipDolnik
Copy link
Member

Hi!

This looks like a caching issue. The first thing you can try is to delete the Kotlin build folder and other caches like the derived data folder (~/Library/Developer/Xcode/DerivedData/ModuleCache)

If this doesn't help, please try the build with SKIE 0.5.2 and if it works, then try 0.5.5 again.

@rs-georg
Copy link
Author

rs-georg commented Nov 9, 2023

Thanks for your reply @FilipDolnik

I've already deleted all caches but the error did not go away.
Using SKIE 0.5.2 does work. Changing it back to 0.5.5, however, breaks the build again. I also tested 0.5.3 and 0.5.4 and got the same error.

Any idea why this error occurs? I can use 0.5.2 for now, but this error would prevent us from updating to future versions.

@FilipDolnik
Copy link
Member

We have encountered one other instance of this problem, but in that specific case, the problem disappeared after trying the abovementioned steps. Because we lost a reproducer, we aren't exactly sure what the problem is yet. To make things better, it only happened on a single machine, and I couldn't reproduce it on another machine with seemingly identical specs (both HW and SW).

Our current guess is that the problem is related to a change in 0.5.3, which affected how SKIE uses Swift cache / incremental compilation. However, we don't know what exactly is wrong yet. What's weird is that the problematic directory from the error message (the /var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp) is not used by SKIE directly - it should be managed by the Swift compiler.

Anyway, here are a few other things that we could try:

  • Rebooting
  • Is the directory from the error message still the same (/var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp), or does it change between compilations - and if so, what path segments do change?
    • If the directory is the same, You could try to create it manually

If these steps do not help, we must figure out how to reproduce the issue on my machine.

So a few questions:

  • Can you reproduce the same problem on another Mac? (if you have an easy way to do it)
  • Can you reproduce the same problem with another project, ideally something you could send us? For example, you can try https://github.com/touchlab/KaMPKit (you might need to change the SKIE version to 0.5.5).

In the meantime, I will try to figure out the next steps.

@rs-georg
Copy link
Author

rs-georg commented Nov 9, 2023

Thanks for your support.

I built it using 0.5.5 in our CI/CD and it worked without issues. So I could not reproduce it on a different machine.

The directories change every time I build, but only parts of it. The /var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T part is always the same. But the part after that changes each time. E.g.

  • TemporaryDirectory.kZwCGQ/RuntimeKotlin.Skie_SuspendResult-1.bc
  • TemporaryDirectory.EqCkm0/RuntimeKotlin.Skie_SuspendResult-1.bc
  • TemporaryDirectory.XLg5B7/RuntimeKotlin.SkieColdFlowIterator-1.bc

I will look into KaMPKit and see if I can reproduce it.

@TadeasKriz
Copy link
Collaborator

Did you also delete build directory? (I expect you did, but I just wanted to doublecheck)

@rs-georg
Copy link
Author

rs-georg commented Nov 9, 2023

@TadeasKriz Yes, I did.
I deleted build and DerivedData. At some point I even deleted the entire Gradle cache (~/.gradle/caches)

@TadeasKriz
Copy link
Collaborator

Thanks, just wanted to make sure because it's weird it worked on the other machine.

Could you compare versions of Xcode between the two machines?

@rs-georg
Copy link
Author

@TadeasKriz
Both machines use Xcode 14.3.1

@FilipDolnik
I tried it with KaMPKit and version 0.5.5 and I could build without any issues.

@TadeasKriz
Copy link
Collaborator

Could you try cloning the project into a different directory on the machine it fails on and build it?

@rs-georg
Copy link
Author

@TadeasKriz
Good idea, however it did not work. I cloned the project into a different directory and it failed with the same errors.
Even the directory with the missing file is the same s8dpwncd1218nbnssnz92xt1rb51pv

@FilipDolnik
Copy link
Member

Another thing we can try is to clone the same project from GIT instead of copying.

@rs-georg
Copy link
Author

That's what I did. I cloned it into a directory somewhere else on disk. So it was completely fresh without any caches

@TadeasKriz
Copy link
Collaborator

The directory s8dpwncd1218nbnssnz92xt1rb51pv is a system thing, so that makes sense it's the same. It's super weird. I think it could be a sort of a race condition. I'll try to look into it locally.

@rs-georg
Copy link
Author

Thanks so much!

I don't know if it helps. I'm using a MBP 14'' M2 Max 32GB RAM and Ventura 13.6.1
Unfortunately, I don't have access to the CI/CD hardware, so no idea what is being used there.

@FilipDolnik
Copy link
Member

Given that it's still the same directory, I'd try to create /var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/TemporaryDirectory.dLijrp directory manually and see what happens.

@TadeasKriz
Copy link
Collaborator

I believe this is what's same: /var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/. So check if that exists, I expect it would. Then check if there's any directory beginning with TemporaryDirectory.. Try deleting all those directories and then run the build again. After it fails, look once more into the /var/folders/y2/s8dpwncd1218nbnssnz92xt1rb51pv/T/ and try to locate the TemporaryDirectory. Let us know if you find it there and if so, what does it contain?

@kasem-sm
Copy link

Facing the same issue, In my case it's the project dir -

/Users/username/TPA/iosApp/Pods/<unknown>:1:1 error opening input file 'Projects/TPA/shared/build/skie/binaries/podDebugFramework/DEBUG/iosArm64/swift/generated/RuntimeKotlin/RuntimeKotlin.Skie_SuspendResult.swift' (No such file or directory)

@FilipDolnik
Copy link
Member

Hi @kasem-sm! While the error message is similar, the underlying problem is likely very different. These directories should be directly managed by the SKIE Gradle plugin. Could you please create a separate issue (and answer the questions in the template) so we don't mix these two problems?

@rzhukov
Copy link

rzhukov commented Mar 4, 2024

Facing the same (original) issue. Figured out, that if I remove embedBitcode(BITCODE) from my framework configuration, then it builds successfully. Maybe this may help for reproduce and fix.

@TadeasKriz
Copy link
Collaborator

Thanks @rzhukov, I’ll give that a go. Since Bitcode was deprecated, we haven’t used it so I wouldn’t be surprised if that was the culprit.

@FilipDolnik
Copy link
Member

I was able to reproduce the issue by adding embedBitcode(BITCODE). The problem is likely that we use incremental compilation for Swift, which is not supported together with BITCODE.

@FilipDolnik
Copy link
Member

"Fixed" in 0.6.2 by adding an explicit error that bitcode embedding is not supported by SKIE.

@rs-georg
Copy link
Author

Thanks so much for figuring this out! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants