-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
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. |
Thanks for your reply @FilipDolnik I've already deleted all caches but the error did not go away. 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. |
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 Anyway, here are a few other things that we could try:
If these steps do not help, we must figure out how to reproduce the issue on my machine. So a few questions:
In the meantime, I will try to figure out the next steps. |
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
I will look into KaMPKit and see if I can reproduce it. |
Did you also delete |
@TadeasKriz Yes, I did. |
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? |
@TadeasKriz @FilipDolnik |
Could you try cloning the project into a different directory on the machine it fails on and build it? |
@TadeasKriz |
Another thing we can try is to clone the same project from GIT instead of copying. |
That's what I did. I cloned it into a directory somewhere else on disk. So it was completely fresh without any caches |
The directory |
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 |
Given that it's still the same directory, I'd try to create |
I believe this is what's same: |
Facing the same issue, In my case it's the project dir -
|
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? |
Facing the same (original) issue. Figured out, that if I remove |
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. |
I was able to reproduce the issue by adding |
"Fixed" in 0.6.2 by adding an explicit error that bitcode embedding is not supported by SKIE. |
Thanks so much for figuring this out! ❤️ |
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.
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?
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
The text was updated successfully, but these errors were encountered: