I have a project where one resource file is generated after the Xcode project is created with tuist. In this scenario, tuist does not obviously add this file. I tried to add the path to this generated file to the array of resources inside the project definition. In this case, tuist issues a warning but does not fail.
Target(
name: "App",
platform: .iOS,
product: .app,
bundleId: "com.example.app",
infoPlist: .file(path: "App/Info.plist"),
sources: ["App/**"],
resources: [
"App/Resource/This-is-a-generated-file.plist"
],
dependencies: []
)
The problem is that the generated project does not have a reference to this resource file, and the application compiles but crashes at runtime because this file is missing. I'd prefer to catch this missing file at compile time and not at runtime.
I could solve this issue by simply moving the file generation before the project generation, but this is problematic because of two reasons. First, it creates an implicit dependency between steps inside the CI/CD that is not clearly visible by looking at the code. Second, if the generation of this file fails for some reason, it wouldn't be possible to catch this problem until I try the application.
These are my first steps with tuist and iOS projects and maybe I am missing something. I am open to suggestions. Thank you.
No response
14.0
3.30.0
15.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too