Daily iOS
Build and distribution

SPM in Tuist projects

How do you set up a third-party library through SPM in a project that Tuist generates?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

In Tuist 4 you declare the dependency in Tuist/Package.swift and fetch it with tuist install. Then you connect it to a target in Project.swift with .external, and tuist generate converts the package into an Xcode target inside the workspace.

Share a question