Replies: 2 comments 5 replies
-
When I upgraded tuist to version 4.10.1, adding So I understand that Tuist does not support using Is it possible to support using |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 You can't use // Package.swift
// swift-tools-version:5.9
import PackageDescription
import ProjectDescriptionHelpers // This is _not_ possible
#if TUIST
import ProjectDescription
import ProjectDescriptionHelpers // This is possible
...
#endif
... As for your project setup, I don't recommend having two |
Beta Was this translation helpful? Give feedback.
-
What problem or need do you have?
I want to use ProjectDescriptionHelpers in
Config.swift
andPackage.swift
, but it seems that this is not supported at the moment?When I introduce ProjectDescriptionHelpers in
Config.swift
and execute themise exec -- tuist generate --verbose
command, it reports an error:no such module 'ProjectDescriptionHelpers'
And the process of
mise exec -- tuist install --verbose
does not seem to execute the code in the#if TUIST
part of thePackage.swift
file?My project structure looks like this:
I want each component project in
Components
to compile and run independently, so I share a lot of configurations inProjectDescriptionHelpers
. Now I hope to add some SPM dependencies toProjectDescriptionHelpers
, so that the components and the main project can maintain the same dependency version.Potential solution
No response
macOS version
14.4.1 (23E224)
Tuist version
4.9.0
Xcode version
15.3
Beta Was this translation helpful? Give feedback.
All reactions