• Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
Wednesday, November 18, 2026
No Result
View All Result
Subscribe Now
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Trump Administration Revokes Pay Increase for Head Start Educators

    Trump Administration Revokes Pay Increase for Head Start Educators

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    LAUSD Takes Strong Action Against Hate Speech Following Racial Slur Incidents

    LAUSD Takes Strong Action Against Hate Speech Following Racial Slur Incidents

    Beloved Former Los Angeles Times Columnist Steve Harvey Passes Away at 80

    Beloved Former Los Angeles Times Columnist Steve Harvey Passes Away at 80

    Exploring Diversity: ‘Ten Lives’ Showcases the Varied Economic Journeys of Americans

    Exploring Diversity: ‘Ten Lives’ Showcases the Varied Economic Journeys of Americans

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
The Insight Post
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Trump Administration Revokes Pay Increase for Head Start Educators

    Trump Administration Revokes Pay Increase for Head Start Educators

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    LAUSD Takes Strong Action Against Hate Speech Following Racial Slur Incidents

    LAUSD Takes Strong Action Against Hate Speech Following Racial Slur Incidents

    Beloved Former Los Angeles Times Columnist Steve Harvey Passes Away at 80

    Beloved Former Los Angeles Times Columnist Steve Harvey Passes Away at 80

    Exploring Diversity: ‘Ten Lives’ Showcases the Varied Economic Journeys of Americans

    Exploring Diversity: ‘Ten Lives’ Showcases the Varied Economic Journeys of Americans

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
No Result
View All Result
No Result
View All Result
Home Mobile

Optimising iOS builds with Tuist and Codemagic CI/CD

by Theinsightpost
July 27, 2023
in Mobile
0 0
0
Optimising iOS builds with Tuist and Codemagic CI/CD

This article is written by Himesh Panchal

? Welcome to our guide on using Tuist and Codemagic CI/CD for mobile developers. In this guide, we’ll focus on how you can utilize the capabilities of Tuist, a command-line tool that helps maintain and interact with Xcode projects, in conjunction with Codemagic to expedite your build processes. We can significantly enhance build speed and efficiency through smart caching techniques. ?

Comparative Results ?

We tested on the M1 machine with our sample iOS app to demonstrate the performance gain.

Below are the results:

? No-Cache Build Time: Approximately 2 minutes 51 seconds

? Cache Build Time: Approximately 16 seconds

As depicted, the cache build performed approximately 90% as fast as the no-cache build, showcasing the benefits of caching.

Sample iOS Native App workflow: Faster Builds in Action ⚡

Consider our sample iOS native application workflow that relies on Swift Package Manager (SPM) dependencies. The traditional approach of no-cache builds means that each time we push an update or change our codebase, the CI/CD pipeline has to re-download and recompile all the dependencies. This can be a significant time sink, especially for larger apps with numerous dependencies.

Our sample workflow will use the Tuist Framework for caching and the Codemagic Platform to store compiled dependencies after the first build. The stored cache will be reused for subsequent builds instead of recompiling everything, resulting in significantly faster build times. ??.

Configuring Tuist in codemagic.yaml workflow.

Install Tuist: This step involves installing the Tuist tool using a bash command that downloads and installs Tuist. Tuist is a command-line tool that helps to maintain and interact with Xcode projects.

- name: Install Tuist
  script: curl -Ls https://install.tuist.io | bash

Setup Tuist in Xcode project: After Tuist is installed, the tuist fetch command is run. This step is crucial as it fetches the latest version of Tuist and sets it up for your project.

- name: Setup Tuist in Xcode project
  script: tuist fetch

Generate Tuist Files: Next, the tuist generate command is run with the -no-open option, which instructs Tuist to generate necessary project files without opening the project in Xcode afterwards.

- name: Generate Tuist Files
  script: tuist generate MyiOSApp --no-open

Build Simulator App: This step is where the actual build process happens. xcodebuild is a command-line tool provided by Xcode that lets you perform build operations. In this case, it is building the specified workspace and scheme for the iPhone simulator. The CODE_SIGN_* variables are set to disable code signing for the build.

- name: Build Simulator App
  script: |
    xcodebuild build \
    -workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \
    -scheme "$XCODE_SCHEME" \
    -sdk iphonesimulator \
    CODE_SIGN_IDENTITY="" \
    CODE_SIGNING_REQUIRED=NO \
    CODE_SIGNING_ALLOWED=NO    

Set up Tuist Caching: Lastly, tuist cache warm --dependencies-only is run to prepare or “warm” the cache. This step involves caching only the dependencies of the project. Cached artifacts are stored and can be reused in subsequent builds, saving the time needed to recompile them.

- name: Set up Tuist Caching
  script: tuist cache warm --dependencies-only

How to Store Cache on Codemagic CI/CD? ✨

Storing cache on Codemagic is a straightforward process. After the initial build process, you can instruct Codemagic to cache the where the compiled SPM dependencies reside. This is achieved by adding a few lines to the codemagic.yaml file.

cache:
  cache_paths:
    - ~/.tuist/Cache

By performing these steps, the build pipeline is set up to take advantage of caching to improve build performance.

Here’s what the codemagic.yaml file could look like after implementation:

ios-native-cache-workflow:
  name: iOS Native Cache Workflow
  environment:
    vars:
      BUNDLE_ID: MyiOSApp.nevercode.io
      XCODE_WORKSPACE: "MyiOSApp.xcworkspace"
      XCODE_SCHEME: "MyiOSApp"
    xcode: 14.1
  scripts:
    - name: Install Tuist
      script: curl -Ls https://install.tuist.io | bash
    - name: Setup Tuist in Xcode project
      script: tuist fetch
    - name: Generate Tuist Files
      script: tuist generate iOSUnitTests --no-open
    - name: Build Simulator App
      script: |
        xcodebuild build \
        -workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \
        -scheme "$XCODE_SCHEME" \
        -sdk iphonesimulator \
        CODE_SIGN_IDENTITY="" \
        CODE_SIGNING_REQUIRED=NO \
        CODE_SIGNING_ALLOWED=NO            
    - name: Set up Tuist Caching
      script: tuist cache warm --dependencies-only
  cache:
    cache_paths:
      - ~/.tuist/Cache      

Summary ?

Caching is a powerful mechanism to expedite your CI/CD pipeline. By leveraging the caching capabilities of the Codemagic platform, we can significantly cut down on redundant tasks, such as recompiling dependencies, leading to faster and more efficient builds.

ShareTweetSend
Previous Post

You need to play Roblox on your Oculus Quest 2 right now

Next Post

Türkiye discloses number of companies with Azerbaijani capital registered in June 2023

Related News

Understanding the Recent Apple Outage: Causes and Implications for Users
Mobile

Understanding the Recent Apple Outage: Causes and Implications for Users

November 18, 2026
Unlocking Potential: Exploring the FDE Model in Enterprise AI Solutions
Mobile

Unlocking Potential: Exploring the FDE Model in Enterprise AI Solutions

November 14, 2026
Unlocking the Scoop: Upcoming Sale Dates, Price Highlights, and Previous Bargains
Mobile

Unlocking the Scoop: Upcoming Sale Dates, Price Highlights, and Previous Bargains

November 14, 2026
Unlocking Website Security: The Marketbyte Edge in Open Source Solutions
Mobile

Unlocking Website Security: The Marketbyte Edge in Open Source Solutions

November 13, 2026
Next Post
Türkiye discloses number of companies with Azerbaijani capital registered in June 2023

Türkiye discloses number of companies with Azerbaijani capital registered in June 2023

Discussion about this post

Subscribe To Our Newsletters

    Customer Support


    1251 Wilcrest Drive
    Houston, Texas
    77042 USA
    Call-832.795.1420
    e-mail – news@theinsightpost.com

    Subscribe To Our Newsletters

      Categories

      • Africa
      • Africa-East
      • African Sports
      • American Sports
      • Arts
      • Asia
      • Australia
      • Business
      • Business Asia
      • Business- Africa
      • Canada
      • Defense
      • Education
      • Egypt
      • Energy
      • Entertainment
      • Europe
      • European Soccer
      • Finance
      • Germany
      • Ghana
      • Health
      • Insight
      • International
      • Investing
      • Japan
      • Latest Headlines
      • Life & Living
      • Markets
      • Mobile
      • Movies
      • New Zealand
      • Nigeria
      • Politics
      • Scholarships
      • Science
      • South Africa
      • South America
      • Sports
      • Tech
      • Travel
      • Travel-Africa
      • UK
      • USA
      • Weather
      • World
      No Result
      View All Result

      Recent News

      Understanding the Recent Apple Outage: Causes and Implications for Users

      Understanding the Recent Apple Outage: Causes and Implications for Users

      November 18, 2026
      Groundbreaking Electric Comb Promises Hair Regrowth in Mice Within Four Weeks, Paving the Way for Future Hair-Loss Solutions

      Groundbreaking Electric Comb Promises Hair Regrowth in Mice Within Four Weeks, Paving the Way for Future Hair-Loss Solutions

      November 18, 2026
      Exciting Animation Releases to Anticipate in 2026: Trailers Revealed!

      Exciting Animation Releases to Anticipate in 2026: Trailers Revealed!

      November 18, 2026
      Rhythms of the World: Celebrating Reggae, Tropical Latin, and Global Sounds

      Rhythms of the World: Celebrating Reggae, Tropical Latin, and Global Sounds

      November 18, 2026
      • Home
      • Advertise With Us
      • About Us
      • Corporate
      • Consumer Rewards
      • Forum
      • Privacy Policy
      • Social Trends

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      Welcome Back!

      Login to your account below

      Forgotten Password?

      Retrieve your password

      Please enter your username or email address to reset your password.

      Log In

      Add New Playlist

      We are using cookies to give you the best experience on our website.

      You can find out more about which cookies we are using or switch them off in .

      No Result
      View All Result
      • Home
      • Insight
      • Blog
      • Business
      • Entertainment
      • Health
      • Politics
      • Shop
        • Gift Shop
        • Value Shop
        • Store
        • Bargain Shop
        • Discount
      • Sports
      • Tech
      • Travel
      • USA
      • Video
      • World
        • Asia
        • Africa
        • South America
        • North America
        • Europe
        • Oceania

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      The Insight Post
      Powered by  GDPR Cookie Compliance
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      Cookie Policy

      More information about our Cookie Policy