<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mohammadreza Koohkan</title>
    <description>The latest articles on Forem by Mohammadreza Koohkan (@mohammadrezakoohkan).</description>
    <link>https://forem.com/mohammadrezakoohkan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1472412%2Fa82ca995-b755-43f8-aa3d-071354ff42f6.png</url>
      <title>Forem: Mohammadreza Koohkan</title>
      <link>https://forem.com/mohammadrezakoohkan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mohammadrezakoohkan"/>
    <language>en</language>
    <item>
      <title>Migrating from CocoaPods to Tuist at Playtomic</title>
      <dc:creator>Mohammadreza Koohkan</dc:creator>
      <pubDate>Wed, 08 May 2024 09:27:55 +0000</pubDate>
      <link>https://forem.com/playtomic/migrating-from-cocoapods-to-tuist-at-playtomic-26ed</link>
      <guid>https://forem.com/playtomic/migrating-from-cocoapods-to-tuist-at-playtomic-26ed</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In the constantly changing world of software development, embracing change and innovation is crucial for staying ahead. At Playtomic, we recognized the need for improving our build system and planned to make a big change by migrating our 4 years old dependency management system from "Manual project management” + CocoaPods to Tuist. &lt;/p&gt;

&lt;p&gt;This shift was all about improving the project structure, simplifying development processes, cleaner build configurations, compatibility with Swift Packages and modern SwiftUI projects and giving the overall development experience a huge boost.&lt;/p&gt;




&lt;h2&gt;
  
  
  Project Structure
&lt;/h2&gt;

&lt;p&gt;Our project lives inside a single git repo and it is divided into different sub projects for different layers of abstraction, following uFeatures architecture in following categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App:&lt;/strong&gt; The core executable module hosting the application, integrating all features, and facilitating integration tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feature Modules:&lt;/strong&gt; Modules with code from some particular feature, they are self-contained and all dependencies from other modules are provided through IoC by the coordinators and intent providers. They are normally structured containing coordinators, views, presenters, interactors, models, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shared Modules:&lt;/strong&gt; Commonly used modules across features, including foundational components, UI elements, and utility functions. We utilize shared modules to enhance reusability and maintainability.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;For a comprehensive understanding of our project's architecture, you can refer to extensive architecture documentation by Angel Garcia, &lt;strong&gt;&lt;a href="https://dev.to/playtomic/playtomics-shared-architecture-using-swift-and-kotlin-320b"&gt;Playtomic's Shared Architecture using Swift and Kotlin&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Migration Reasons and Initiatives
&lt;/h2&gt;

&lt;p&gt;In the early days of our project back in 2018, we structured our project around CocoaPods dependency manager, the most common dependency management tool back then, but nowadays it is not providing our needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Migration Reasons
&lt;/h3&gt;

&lt;p&gt;CocoaPods was indeed one of the important reasons behind our migration, but it wasn't the only factor. We recognized the need for better dependency management tool as our project growth. We encountered more git conflicts and exhausted long manual setup processes for creating new modules. &lt;/p&gt;

&lt;p&gt;Additionally, updating project settings like the iOS target version became cumbersome across different projects. Furthermore, we encountered several inconsistencies in the configurations of feature modules.&lt;/p&gt;

&lt;p&gt;Here are some of challenges we faced:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CocoaPods compatibility issues with SwiftUI and modern swift packages&lt;/li&gt;
&lt;li&gt;CocoaPods was breaking &lt;code&gt;100%&lt;/code&gt; of Xcode SwiftUI Previews&lt;/li&gt;
&lt;li&gt;CocoaPods was causing storyboards loading very slowly (top rated project issue)&lt;/li&gt;
&lt;li&gt;Podfile complexity and dependency maintenance&lt;/li&gt;
&lt;li&gt;Pods folder was stored directly on the repository and not ignored by gitignore, for this reason it did lead to a higher project size&lt;/li&gt;
&lt;li&gt;More git conflicts due to stored xcode project files on the repository&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  B. Migration Goals
&lt;/h3&gt;

&lt;p&gt;After 4 years, in 12th October 2022, we decided to update our build system to Tuist, so we could eliminate main challenges, increase development experience and be ready for future advances.&lt;/p&gt;

&lt;p&gt;We set out to achieve specific goals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have &lt;code&gt;100%&lt;/code&gt; of SwiftUI previews working&lt;/li&gt;
&lt;li&gt;Have storyboards load in less than &lt;code&gt;2s&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Reduce steps needed to create a new module in iOS by &lt;code&gt;50%&lt;/code&gt; (from 31 to 15)
&lt;em&gt;After finalizing migration we realized that steps reduced from 31 to 10 steps instead!&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In addition to that we were targeting several areas to improve by adopting Tuist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Structure and modularity of the project&lt;/strong&gt;: With Tuist we could have a common structure for all of our feature modules, ensuring that they are properly configured and consistent, and save a lot of time declaring and keeping them updated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Migration from CocoaPods to SPM/Carthage&lt;/strong&gt;: We were struggling to make CocoaPods work properly with the microfeatures architecture, majority of iOS developers community were adopting Swift Package Manager (SPM) or Carthage as main build system, but with Tuist we saw a way to kill 2 birds with 1 stone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build speed improvements&lt;/strong&gt;: The project was becoming bigger and slower to compile. We thought that Tuist could help us improve build time by better modularization and the use of remote and local caches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git Conflicts&lt;/strong&gt;: With more people working in the same project was resulting in frequent git conflicts in the project files. Therefore, we wanted to move to a solution where project files would not be committed but generated, and Tuist provided that (as well as other tools).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keeps the same build tools:&lt;/strong&gt; in contrast with other alternatives, Tuist was not replacing the build system but integrating SPM and Carthage nicely in the existing tools.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Implementation Plan
&lt;/h2&gt;

&lt;p&gt;For replacing Cocoapods with Tuist we took several steps, from creating all the internal modules in Tuist and linking them together&lt;/p&gt;

&lt;p&gt;Key aspects of this transition included:&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Migration Strategy
&lt;/h3&gt;

&lt;p&gt;Our migration to Tuist involved a multi-step strategy, we wanted the integration to be transparent to the team with minimal disruption of the daily workflow of our 16-person team, otherwise it couldn’t be even possible to start. The strategy involved:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Transparent Integration:&lt;/strong&gt; Create the Tuist project in a subfolder while maintaining compatibility with CocoaPods during the migration. Developers would continue using the old CocoaPods setup while we work on the migratation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strategic Source Code Linking:&lt;/strong&gt; Link source codes without modifying the existing codebase linked to CocoaPods. This allowed for both build systems to coexist, we had to act drastically to keep both build systems active and buildable until a strategic moment to switch build system from CocoaPods to Tuist&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  B. Migration Steps
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Project Overview (October 2022)
&lt;/h4&gt;

&lt;p&gt;Back in October 2022, we started by listing all of our internal and external dependencies to have an overview In total our project consisted of &lt;strong&gt;&lt;code&gt;20&lt;/code&gt;&lt;/strong&gt; modules, including &lt;strong&gt;&lt;code&gt;1&lt;/code&gt;&lt;/strong&gt; app module with an executable IPA target, &lt;strong&gt;&lt;code&gt;6&lt;/code&gt;&lt;/strong&gt; shared internal dependencies and &lt;strong&gt;&lt;code&gt;13&lt;/code&gt;&lt;/strong&gt; feature modules with dynamic framework targets + unit tests.&lt;/p&gt;

&lt;p&gt;Tuist's flexibility with both SPM and Carthage made this transition from cocoapods much smoother for us, we continued by searching through each external dependency’s git repository to check if it supports Swift Package Manager (SPM) or Carthage by checking following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Supports Swift Package Manager, if git repo contains &lt;code&gt;Package.swift&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;Supports Carthage, If git repo contains an xcode project with schema to build a &lt;code&gt;framework&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While going through this, we found some older libraries, like outdated versions of R.swift, and some Objective-C libraries that didn't support Carthage, Our solution? We either forked and provided requirements or updated to higher versions.&lt;/p&gt;

&lt;h4&gt;
  
  
  Environment Setup and Integration (November 2022)
&lt;/h4&gt;

&lt;p&gt;With more confidence and clarity over the project finally implementation started in early November 2022, we started by following instructions in &lt;a href="https://docs.tuist.io/documentation/tuist/" rel="noopener noreferrer"&gt;Tuist Documentations&lt;/a&gt; and we kicked off migration with Tuist version 3.12.0.&lt;/p&gt;

&lt;p&gt;After we downloaded and installed Tuist command line tool and other required tools like Carthage, we started the migration as follows:&lt;/p&gt;

&lt;h5&gt;
  
  
  1. Creating the Tuist Project
&lt;/h5&gt;

&lt;p&gt;We began migration by initializing tuist project in a sub folder from root of the project at &lt;code&gt;~/playtomic-ios/tuist&lt;/code&gt;, the tuist folder placed besides Pods and Podfile.&lt;/p&gt;

&lt;h5&gt;
  
  
  2. Folder Restructuring
&lt;/h5&gt;

&lt;p&gt;We wanted the migration to be transparent to developers, therefore we didn’t wan’t to move source code that have been already linked to CocoaPods to another folder, we wanted both CocoaPods and Tuist projects coexist even after the migration for some time. &lt;/p&gt;

&lt;p&gt;With the new tuist project in place, we started the tuist migration at a sub folder where only tuist project manifests are located and the actual source code is at the same old location.&lt;/p&gt;

&lt;p&gt;Root of the project playtomic-ios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pods&lt;/li&gt;
&lt;li&gt;Podfile&lt;/li&gt;
&lt;li&gt;playtomic.xcworkspace (OLD)&lt;/li&gt;
&lt;li&gt;App → Source code only&lt;/li&gt;
&lt;li&gt;Shared → Source code only&lt;/li&gt;
&lt;li&gt;Features/

&lt;ul&gt;
&lt;li&gt;Feature-A → Source code only&lt;/li&gt;
&lt;li&gt;rest of features… → Source code only&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;tuist/

&lt;ul&gt;
&lt;li&gt;playtomic.xcworkspace (NEW generated by tuist)&lt;/li&gt;
&lt;li&gt;Workspace.swift&lt;/li&gt;
&lt;li&gt;App → Manifest only&lt;/li&gt;
&lt;li&gt;Shared → Manifest only&lt;/li&gt;
&lt;li&gt;Features/&lt;/li&gt;
&lt;li&gt;Feature-A → Manifest only&lt;/li&gt;
&lt;li&gt;rest of features… → Manifest only&lt;/li&gt;
&lt;li&gt;Tuist/… (New project settings and dependencies)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h5&gt;
  
  
  3. Create Project.swift manifest file for each module
&lt;/h5&gt;

&lt;p&gt;Project.swift manifest represents an Xcode project. It’s used to define the targets of the project and their dependencies. For us Project.swift file represents implementation of each internal module we have.&lt;/p&gt;

&lt;p&gt;For example the Project.swift file for a shared module like “Mozart” looks like this:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;

&lt;span class="c1"&gt;// playtomic-ios/tuist/Shared/Mozart/Project.swift&lt;/span&gt;

&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;Project&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Mozart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;organizationName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Playtomic"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;targets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="kt"&gt;Target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Mozart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;platform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iOS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;framework&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;bundleId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"com.playtomic.Mozart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="c1"&gt;// Pointing to the source code folder -&amp;gt; playtomic-ios/Mozart/Mozart/...&lt;/span&gt;
      &lt;span class="nv"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"../../../Mozart/Mozart/**/*.swift"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
      &lt;span class="c1"&gt;// Pointing to the resources folder where assets are placed -&amp;gt; playtomic-ios/Mozart/Mozart/...&lt;/span&gt;
      &lt;span class="nv"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"../../../Mozart/Mozart/**/{*.strings,*.xcassets,*.storyboard,*.xib}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;dependencies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="c1"&gt;// Internal or External dependencies will be linked here &lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="kt"&gt;Target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Mozart UnitTests"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;platform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iOS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;unitTests&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;bundleId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"com.playtomic.Mozart.UnitTests"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="c1"&gt;// Pointing to the Unit Tests folder source code -&amp;gt; playtomic-ios/Mozart/MozartTests/...&lt;/span&gt;
      &lt;span class="nv"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"../../../Mozart/MozartTests/**/*.swift"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="c1"&gt;// Pointing to Unit Tests resources -&amp;gt; playtomic-ios/Mozart/MoartTests/...&lt;/span&gt;
      &lt;span class="nv"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"../../../Mozart/MozartTests/**/{*.strings,*.xcassets,*.storyboard,*.xib}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nv"&gt;dependencies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Mozart"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="c1"&gt;// Internal or External dependencies will be linked here&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;In the migration process Project.swift files play a crucial role in defining the manifest of internal modules. These files are strategically located to be ensure a transparent migration. &lt;/p&gt;

&lt;p&gt;As an example the &lt;code&gt;playtomic-ios/tuist/Shared/Mozart/Project.swift&lt;/code&gt; only defines Mozart module manifest and for the source code manifest will point to the same source files utilized in our CocoaPods project &lt;code&gt;playtomic-ios/Shared/Mozart/...&lt;/code&gt;, this approach allowed us to execute the migration while ensuring both Tuist and CocoaPods projects are working seamlessly.&lt;/p&gt;

&lt;h5&gt;
  
  
  4. Setting up build schemes
&lt;/h5&gt;

&lt;p&gt;Schema for each target will be generated automatically by tuist, and in addition to that Tuist automatically generates an umbrella schema with every internal target listed for building and every test target listed for testing, if you don’t want the umbrella schema you can disable it by passing false to &lt;code&gt;autogeneratedWorkspaceSchemes&lt;/code&gt; in the Workspace.swift manifest file.&lt;/p&gt;

&lt;h5&gt;
  
  
  5. Setting up different language and localization
&lt;/h5&gt;

&lt;p&gt;We simplified this process by passing a glob pattern for resources that also searches for string tables, it efficiently collects files ending with the &lt;strong&gt;&lt;code&gt;.strings&lt;/code&gt;&lt;/strong&gt; extension, this pattern is passed to the resource arguments in Project.swift file as follows:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;During Xcode project generation, any collected &lt;strong&gt;.strings&lt;/strong&gt; file will be linked to the project&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;

&lt;span class="c1"&gt;// playtomic-ios/tuist/App/Project.swift&lt;/span&gt;

&lt;span class="kt"&gt;Project&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;
  &lt;span class="c1"&gt;// Pointing to resources -&amp;gt; playtomic-ios/App/Playtomic/...&lt;/span&gt;
  &lt;span class="nv"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"../../../App/Playtomic/**/{*.strings,*.xcassets,*.storyboard,*.xib}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h5&gt;
  
  
  6. Grouping Project.swift files under a Workspace.swift
&lt;/h5&gt;

&lt;p&gt;This manifest represents an Xcode workspace. An Xcode Workspace is used to group other projects and add additional files and schemas, it has access to every added project’s targets.&lt;/p&gt;

&lt;p&gt;Once you define Workspace.swift file within tuist manifest folder, it auto-generates a workspace file.&lt;/p&gt;

&lt;p&gt;In our project, we were looking for flexibility in customizing project schemas and enable or disable specific unit test targets as needed, such as integration tests. The final Workspace.swift file, handling grouping projects with customized schemas, looks like this:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;

&lt;span class="c1"&gt;// playtomic-ios/tuist/Workspace.swift&lt;/span&gt;

&lt;span class="kd"&gt;import&lt;/span&gt; &lt;span class="kt"&gt;Foundation&lt;/span&gt;
&lt;span class="kd"&gt;import&lt;/span&gt; &lt;span class="kt"&gt;ProjectDescription&lt;/span&gt;
&lt;span class="kd"&gt;import&lt;/span&gt; &lt;span class="kt"&gt;ProjectDescriptionHelpers&lt;/span&gt;

&lt;span class="c1"&gt;// Assigned with Production build configuration&lt;/span&gt;
&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;productionScheme&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;Scheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Playtomic"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;shared&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// Assigned with Development build configuration&lt;/span&gt;
&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;integrationScheme&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;Scheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Playtomic (Integration)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;shared&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;workspace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;Workspace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Playtomic"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s"&gt;"App/Project.swift"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s"&gt;"Shared/Mozart/Project.swift"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;// Other Shared modules...&lt;/span&gt;
    &lt;span class="s"&gt;"Features/Onboarding/Project.swift"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;// Other Feature modules...&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="nv"&gt;schemes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;productionScheme&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;integrationScheme&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="nv"&gt;generationOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Workspace&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;GenerationOptions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nv"&gt;autogeneratedWorkspaceSchemes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h5&gt;
  
  
  7. Tuist generate and first run
&lt;/h5&gt;

&lt;p&gt;With this added to the tuist manifest project, one final command line execution of the &lt;code&gt;tuist generate&lt;/code&gt;, creates and opens the workspace, one final run through iOS Simulators and, BOOM, Success!&lt;/p&gt;


&lt;h2&gt;
  
  
  Preparing for the Merge: Transitioning Code into the Development Branch
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExY2VvMjlrNWptaGV2ZDM4ODVwdGQ5aGUxYnJ2YmJldGJsZTZiN2FtMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/cFkiFMDg3iFoI/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExY2VvMjlrNWptaGV2ZDM4ODVwdGQ5aGUxYnJ2YmJldGJsZTZiN2FtMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/cFkiFMDg3iFoI/giphy.gif" alt="GIT-MERGE-GIF"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Transitioning from CocoaPods to Tuist wasn't a smooth sail. Here's how we tackled development experience gap between CocoaPods and Tuist.&lt;/p&gt;
&lt;h3&gt;
  
  
  A. Installation of the new tools
&lt;/h3&gt;

&lt;p&gt;Getting started with Tuist meant installing new tools with specific versions. To streamline this process, we detailed comprehensive instructions in our README file. Developers could easily follow these steps to install the necessary tools such as Tuist and Carthage, fetch third-party libraries, and generate the new workspace.&lt;/p&gt;
&lt;h3&gt;
  
  
  B. Bridging the Gap: Daily Work Differences
&lt;/h3&gt;

&lt;p&gt;We wanted the migration to be transparent and improve the development experience, but the nature of Tuist and CocoaPods was so different. We used to keep third party dependencies on the project repository under the Pods folder, but with tuist we decided to not keep third party library caches of SPM and Carthage on the repository.&lt;/p&gt;

&lt;p&gt;In addition to that, Tuist required developers to execute the &lt;strong&gt;&lt;code&gt;tuist generate&lt;/code&gt;&lt;/strong&gt; command to update and generate the &lt;strong&gt;&lt;code&gt;.xcworkspace&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;.xcodeproj&lt;/code&gt;&lt;/strong&gt; files. Since these files are ignored by gitignore and changes made to the workspace file didn't reflect on others' devices.&lt;/p&gt;

&lt;p&gt;To maintain a seamless transition, we aimed to keep developers workflow similar to CocoaPods. We didn't want them to manually run the &lt;strong&gt;&lt;code&gt;tuist generate&lt;/code&gt;&lt;/strong&gt; every time they switch branches. Instead, we wanted them to open the &lt;strong&gt;&lt;code&gt;.xcworkspace&lt;/code&gt;&lt;/strong&gt; file and dive into coding.&lt;/p&gt;

&lt;p&gt;To achieve this, we leveraged git hooks as trigger points. By adding bash scripts to &lt;code&gt;post-checkout&lt;/code&gt; and &lt;code&gt;post-merge&lt;/code&gt; git hooks, we ensured that every time developers interacted with the project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Third-party dependencies were updated as needed&lt;/li&gt;
&lt;li&gt;Workspace file was consistently updated on their repositories.&lt;/li&gt;
&lt;li&gt;Project will be opened automatically with the updated files and third-party repositories&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt; 
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Press control ^ + C to cancel git hook execution"&lt;/span&gt; 
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt; 

&lt;span class="nv"&gt;TUIST_MANIFEST_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;".../playtomic-ios/tuist"&lt;/span&gt; 

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Fetch and update third party dependencies"&lt;/span&gt;
tuist fetch &lt;span class="nt"&gt;--update&lt;/span&gt; &lt;span class="nt"&gt;--path&lt;/span&gt; TUIST_MANIFEST_PATH 

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Generate and open project workspace"&lt;/span&gt; 
tuist generate &lt;span class="nt"&gt;--path&lt;/span&gt; TUIST_MANIFEST_PATH


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Experimental Phase: Challenges we faced and how we overcame it
&lt;/h2&gt;

&lt;p&gt;After finalizing Tuist migration implementation and merging changes with the codebase in December 2022, we began the experimental phase. During this period, we built the project on several Mac machines, identifying and addressing the following issues:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Duplicate Static Dependencies
&lt;/h3&gt;

&lt;p&gt;When we used &lt;strong&gt;&lt;code&gt;tuist generate&lt;/code&gt;&lt;/strong&gt; command for generating the Tuist project, we encountered hundreds of warnings displayed on the Terminal about duplicated dependencies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Warning: Target 'Tournament' has duplicate project dependency specified: 'GoogleSignIn'&lt;/li&gt;
&lt;li&gt;Warning: Target 'Academy' has duplicate project dependency specified: 'GoogleSignIn'&lt;/li&gt;
&lt;li&gt;Warning: Target 'Location' has duplicate project dependency specified: 'GoogleSignIn'&lt;/li&gt;
&lt;li&gt;Warning: Target 'GoogleSignIn' has been linked from target 'Onboarding', target 'Payment', target 'Paywall', etc.., it is a static product so may introduce unwanted side effects.&lt;/li&gt;
&lt;li&gt;etc..&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To address this, we changed the linking from static to dynamic frameworks. For dependencies imported by a single module, we kept them statically linked as it was not causing any duplication issue. However, for dependencies imported by multiple internal modules, especially those with transitive libraries, we switched to dynamic linking.&lt;/p&gt;

&lt;p&gt;For example, &lt;code&gt;GoogleSignIn&lt;/code&gt; had some libraries inside such as &lt;code&gt;AppAuthCore&lt;/code&gt; which was also imported by other google products like Firebase, this means that our app is indirectly linked those frameworks. The configuration in our Tuist &lt;code&gt;Dependencies.swift&lt;/code&gt; file better explains this approach:&lt;/p&gt;

&lt;p&gt;The configuration in our Tuist &lt;strong&gt;&lt;code&gt;Dependencies.swift&lt;/code&gt;&lt;/strong&gt; file describes this approach:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6l7lhp3moim4lacvgzkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6l7lhp3moim4lacvgzkt.png" alt="Dependencies-Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Disabling Tuist's Automatic Code Generation
&lt;/h3&gt;

&lt;p&gt;Since we were using R.swift instead of SwiftGen for generating resources with references in code, we disabled Tuist's automatic code generation tool.&lt;/p&gt;

&lt;p&gt;If you don’t want to enable resource synthesizers, you can just pass empty array &lt;code&gt;resourceSynthesizers: []&lt;/code&gt; in &lt;code&gt;Project&lt;/code&gt; initializer.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;

&lt;span class="kt"&gt;Project&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;resourceSynthesizers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[],&lt;/span&gt;
  &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This code snippet will disable the auto-generation of resources while still allowing to continue other magical automatic processes, like generating Info.plists and etc.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Reduce New Feature Module Creation Steps
&lt;/h3&gt;

&lt;p&gt;There is a tool in Tuist called &lt;code&gt;scaffold&lt;/code&gt;, it helps you bootstrap new components from .stencil templates that you defined, these templates are consistent with your project.&lt;/p&gt;

&lt;p&gt;We did use it to create a new feature module called Level to Playtomic:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

tuist scaffold mvi-module &lt;span class="nt"&gt;--name&lt;/span&gt; Level


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;For example a file called Presenter.stencil will be used as template, arguments passed in scaffold command like name as &lt;code&gt;—name Level&lt;/code&gt; will be replaced by &lt;code&gt;{{ name }}&lt;/code&gt; in the stencil file.&lt;/p&gt;

&lt;p&gt;Therefore this method enables us to create several files at different locations to generate an entire feature module with just a single command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6hjq79g4yhxuax86dsse.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6hjq79g4yhxuax86dsse.png" alt="Presenter-stencil-image"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Performance Metrics and Optimization
&lt;/h2&gt;

&lt;p&gt;To determine the effectiveness of the migration, we explored key performance metrics, comparing the new system with the old one. Our focus was on improving the app launch time and reducing the size of the final binary as decent goals.&lt;/p&gt;

&lt;h3&gt;
  
  
  App Launch Time
&lt;/h3&gt;

&lt;p&gt;We have analyzed app launch time by utilizing Firebase Performance tool:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Tuist IPA&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;  Initializing for first time: 1.08s&lt;/li&gt;
&lt;li&gt;  AppDelegate - didFinishLaunchingWithOptions: 414ms&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;  &lt;strong&gt;CocoaPods IPA&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;  Initializing for first time: 2.03s&lt;/li&gt;
&lt;li&gt;  AppDelegate - didFinishLaunchingWithOptions: 671ms&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;These results highlight a notable enhancement in the initialization phase, we were so happy because this improvement was not our primary goal but something nice to have!&lt;/p&gt;

&lt;h3&gt;
  
  
  Size of Final Binary
&lt;/h3&gt;

&lt;p&gt;The transition to Tuist allowed us to create cleaner and less duplicated target configurations, resulting in a more streamlined and efficient project structure. This migration contributed to a smaller binary size:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;CocoaPods IPA:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;  Total Size of the IPA: 107.575.065 bytes (107.6 MB)&lt;/li&gt;
&lt;li&gt;  Payload: 167.386.848 bytes (167.4 MB)&lt;/li&gt;
&lt;li&gt;  App on AppStore: 164.9 MB&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;  &lt;strong&gt;Tuist IPA:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;  Total Size of the IPA: 99.723.283 bytes (99.7 MB)&lt;/li&gt;
&lt;li&gt;  Payload: 140.351.007 bytes (140.4 MB)&lt;/li&gt;
&lt;li&gt;  App on AppStore: (138.7 MB)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Build Compilation Time on M1 Pro with 16GB RAM
&lt;/h3&gt;

&lt;p&gt;Additionally, we conducted an in-depth analysis of the build compilation time on an M1 Pro with 16GB RAM. The results, comparing CocoaPods and Tuist, are as follows:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CocoaPods:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Xcode Clean: 2.9s&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic DEBUG: 189s&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic RELEASE: 196s&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tuist:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Xcode Clean: 5.9s&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic DEBUG: 163s&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic RELEASE: 170s&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further optimizations were achieved by leveraging Tuist's caching capabilities. With &lt;strong&gt;&lt;code&gt;tuist cache warm&lt;/code&gt;&lt;/strong&gt; that pre-compiles modules. We’ve particularly utilized tuist cache for third party libraries and we observed reduced build time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Xcode Clean: 2.6s (&lt;em&gt;2.25x Faster&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic DEBUG: 143s (&lt;em&gt;1.13x Faster&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;  Xcode Build Playtomic RELEASE: 154s (&lt;em&gt;1.1x Faster&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  CI Improvements
&lt;/h2&gt;

&lt;p&gt;In the final phase of our transition, we had to move all the scripts we used before. These scripts were crucial for different tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Running Unit Tests: Essential for checking if our code changes were good to go before merging them (you know, the whole Pull Request approval thing).&lt;/li&gt;
&lt;li&gt;  Generating Testing Binaries: This helped us create versions of our app specifically for review and Quality Assurance (QA) testing.&lt;/li&gt;
&lt;li&gt;  Releasing to the AppStore: The process of actually shipping our app to the big wide world. This includes submitting all the necessary information and metadata.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We didn't just stop at improving the app build, we also fine-tuned our Continuous Integration processes on Bitrise our CI provider.&lt;/p&gt;

&lt;p&gt;Moving from CocoaPods to Tuist wasn't just about building and testing; it was about making everything faster. We used Tuist magic for pre-compiling projects &lt;strong&gt;&lt;code&gt;tuist cache warm&lt;/code&gt;&lt;/strong&gt; and Bitrise &lt;strong&gt;&lt;code&gt;key-based&lt;/code&gt;&lt;/strong&gt; caching for third-party Swift Package Manager (SPM) and Carthage libraries source codes.&lt;/p&gt;

&lt;p&gt;As outlined before, we used to have the Pods folder on the project repository for the same purpose of not downloading dependencies on CI machine and avoid execution of &lt;code&gt;**pod** **install**&lt;/code&gt; on every CI job.&lt;/p&gt;

&lt;p&gt;With Bitrise &lt;strong&gt;&lt;code&gt;key-based&lt;/code&gt;&lt;/strong&gt; caching, we fetched third-party libraries, including their source code, only once and later efficiently retrieved them using Bitrise's caching mechanism. This resembles the approach of storing the Pods folder but with the added benefits of reduced repository size and improved efficiency. Users can configure caching to create new cache archives periodically, since cache archive remains valid for seven days but resetting if updated and discarding old ones automatically. &lt;/p&gt;

&lt;p&gt;Without &lt;strong&gt;&lt;code&gt;key-based&lt;/code&gt;&lt;/strong&gt; caching, fetching third-party dependencies for SPM and Carthage projects incurred unnecessary overhead on every CI job. Now, we fetch once, update the key based on new hashes generated from Package.resolved and Carthage.resolved files, mirroring the concept of CocoaPods' Podfile.lock CHECKSUM value. This streamlining significantly improves the efficiency of our CI pipelines.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion: Reflecting on Our Journey
&lt;/h2&gt;

&lt;p&gt;Migrating from CocoaPods to Tuist was a strategic move that has significantly benefited Playtomic. Not only did we overcome the limitations posed by CocoaPods, but we also achieved a more streamlined, efficient, and future-ready development environment.&lt;/p&gt;

&lt;p&gt;This success was accomplished by careful planning and a focus on minimizing disruption for other developers.&lt;/p&gt;

&lt;p&gt;As we look back on this transition, we're reminded of the importance of adaptability in technology. By embracing Tuist, we've not only enhanced our current development system but also positioned ourselves for future growth and advancement.&lt;/p&gt;

&lt;p&gt;This experience underscores our commitment to continuous improvement and our dedication to delivering the best possible experience to our users and developers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://docs.tuist.io/documentation/tuist/" rel="noopener noreferrer"&gt;Tuist Documentation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://devcenter.bitrise.io/en/dependencies-and-caching/key-based-caching.html" rel="noopener noreferrer"&gt;Bitrise Key-Based Caching&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://dev.to/playtomic/playtomics-shared-architecture-using-swift-and-kotlin-320b"&gt;Playtomic's Shared Architecture using Swift and Kotlin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tuist</category>
      <category>ios</category>
      <category>cocoapods</category>
      <category>swift</category>
    </item>
  </channel>
</rss>
