Log in
releases

Tuist 4.26.0: GitHub integration and a new command to find implicit dependencies

Learn more about the new features and improvements in Tuist 4.26.0.

Tuist 4.26.0 is out, and we’d like to share with you the new features and improvements that come with it.

Meeting developers where they are: GitHub integration

One of the principles we embrace at Tuist is to meet developers where they are.

  • We chose Swift over YAML for the manifest format because developers love writing in Swift. This choice also unlocks many possibilities that aren’t achievable with YAML.
  • We integrated with and aligned ourselves with the Swift Package Manager because it has become the standard for managing dependencies in the Swift ecosystem.
  • We added support for binary caching using Xcode project primitives instead of asking developers to change their build system.

But where exactly are Xcode developers? While they spend a large portion of their time in Xcode, they also spend significant time on platforms like GitHub or Slack, collaborating with their peers. Should we meet them there? We think so!

Traditionally, meeting developers on these platforms meant teams had to develop and maintain complex CI workflows that pushed data to these platforms. Although this approach worked, it exposed organizations to malicious actors because secrets were often revealed in CI workflows. Furthermore, the absence of a place to store data over time limited what teams could do with these integrations. Imagine being notified when a pull request introduces a regression in build times or when a newly introduced test in the codebase is flaky.

At Tuist, we had the most crucial element to enable this type of developer experience: a server that persists information from your projects and runs over time. However, we were missing one key piece—the integration of our server with one of the platforms where developers spend most of their time, GitHub. That’s why we’re excited to announce that Tuist now integrates with GitHub. With a simple command, you can connect your remote project with a GitHub repository.

tuist project update tuist/tuist –repository-url https://github.com/tuist/tuist

You also need to install the Tuist GitHub app in your repository.

Once you integrate with GitHub, Tuist can automatically post your test results and previews that you can run with a single click.

A screenshot that shows a GitHub comment with some links to run previews and the results from running tests

Implicit dependencies: Developers’ worst nightmare

Xcode can resolve dependencies implicitly. Imagine this scenario: a developer adds the following line to a source file:

import Network

Suddenly, the module containing that source file depends on Network. This seemingly small change is a frequent cause of build-time slowness and Xcode instability. Implicit dependencies introduce new variables that must be resolved, not only during the build process but also while editing—when you’re trying to load SwiftUI previews or get LLDB to work. In other words, Xcode’s editor and build system are unexpectedly faced with new questions that need quick, reliable, and deterministic answers. And this isn’t something that’s widely discussed.

Unfortunately, Tuist can’t fix this issue due to how Xcode builds artifacts. However, many organizations that adopt Tuist report improved build times. This isn’t because of Tuist itself but because the process of adopting Tuist often involves reviewing the dependency graph and converting implicit dependencies into explicit ones. Our frequent advice is to embrace explicitness as much as possible and remove uncertainties from the build system.

Since we can’t configure Xcode’s build system to disallow implicit dependencies and tweaking build settings didn’t produce the desired results, we decided to add a new command that uses static code analysis to catch implicit dependencies. It won’t catch every instance, but it will identify many of them. We hope this command helps you detect implicit dependencies early in your development process.

If you have a Tuist project, you can use the following command:

tuist inspect implicit-imports

The command will output any implicit imports it finds and fail if any are detected. Magic 🪄, right? Special thanks to Gorbenko Roman for leading the development of this feature. He’s already planning an even tighter integration with Xcode.

Other changes

What’s next

We are working on a new website, which we plan to release soon, and we are starting to work on Tuist Workflows and Swift-based automation solution that blurs environments, decouples organizations from proprietary CI YAMLs, and takes a CLI-first approach to automation. We expect the infrastructure and technology work required to enable this feature to be the foundation for many other features in the future.

You might also like

Introducing plugins
Plugins is a new feature that allows reusing Tuist building blocks across repositories. In this blog post we present the feature and how teams can leverage it to share project description helpers.
Etsy's Journey with Tuist: A Deep Dive into Modularity and Rapid Iteration
Etsy evolves its decade-long monolithic iOS app with Tuist, paving the way for modular development. With nearly 50 iOS engineers, they leverage Tuist for streamlined module creation and emphasize a unified approach to architecture. Transitioning to SwiftUI and adopting Preview Driven Development, Etsy champions rapid iteration, testability, and consistent quality. Their tech journey reflects innovation at its best.
1.14.0 Spezi, a release packed with improvements
In this blog post we present the improvements and bug fixes that we included in the version of Tuist 1.14.0

Supercharge your app development

Get started