Question or problem
When running tuist generate
I get the following error:
➜ mise exec -- tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
▌ ✖ Error
▌ Couldn't find architectures for binary at path /Users/xxxx/Developer/xxxx/xxxx/KDCReader/libKDCReader.a
▌
▌ Sorry this didn’t work. Here’s what to try next:
▌ ▸ If the error is actionable, address it
▌ ▸ If the error is not actionable, let's discuss it in the Troubleshooting & how to
▌ ▸ If you are very certain it's a bug, file an issue
▌ ▸ Check out the logs at /Users/xxxx/.local/state/tuist/logs/27D01F0C-C020-4F9F-AF7D-2096CBB109F5.log
When trying to add a static library dependency to my target.
Expectation
That I’m able to add a static library to my target in this way
Context
➜ mise exec -- tuist version
4.45.1
Contents of the log is:
➜ cat /Users/xxxx/.local/state/tuist/logs/27D01F0C-C020-4F9F-AF7D-2096CBB109F5
2025-03-28T08:56:53+1100 notice dev.tuist.cli : is=section Loading and constru
2025-03-28T08:56:53+1100 notice dev.tuist.cli : It might take a while if the c
The dependency is defined as:
.library(
path: "KDCReader/libKDCReader.a",
publicHeaders: "KDCReader/include",
swiftModuleMap: "KDCReader/KDCReader.swiftmodule"
),
The module map looks like:
➜ cat KDCReader/KDCReader.swiftmodule
module KDCReader [system] {
header "include/KDCReader.h"
link "KDCReader"
export *
}
Running lip -info
on the binary gives me:
➜ lipo -info KDCReader/libKDCReader.a
Architectures in the fat file: KDCReader/libKDCReader.a are: armv6 armv7 armv7s x86_64 arm64
Reproduction (mandatory for problems)
This is hard to provide a reproduction for as this isn’t a sharable library. So I’m mainly looking for direction and if I’m seemingly doing the correct thing.