Skip to content

Update Trio with Xcode

Overview

Time Estimate

  • 25 minutes if Xcode and macOS are already updated to support the current or desired iOS.
  • Up to 2 days, if needed, to install macOS and Xcode update(s).

Summary

Summary of tasks to prepare for and update your app:

  • Determine the required macOS and Xcode versions based on your phone's iOS.
    • If necessary, update first macOS and then Xcode.
  • Check your Developer Account.
  • Download the updated Trio code and build Trio.

In each of the sections below, follow links to sections of other build pages then hit the back button on your browser to return to this page.

FAQs

  • When do I update? Anytime you want to change versions or if the app is about to expire.
  • Do I delete my old Trio app first? No! If you keep your Trio app on your phone, your settings (and existing pod) will continue to work the same after the update.
  • Do I need to start a new pod when I update? No. Your pod session will continue seamlessly if you use the same Apple Developer Account to sign the Trio app targets as you did the last time you built.
  • What if I'm using a new/different developer account? If you aren't building with the same developer account used when your existing app was built (this includes going from free to paid), you will install a brand new (second) Trio app on your phone. Your existing pod won't work with the new app, so you should time this transition when you are due to change pods. Delete the old app once you get the new one all setup.
  • What if it is a new computer but the same developer account? No big deal...use the Updating Steps to check that your new computer has the required compatible versions and then build your app. This will include installing Xcode, configuring Xcode Settings, and adding your Developer ID to Xcode.

Prepare to Update

Under ordinary circumstances, you only have to update Trio once it expires (1 year for a paid account). However, we encourage regular updates when new versions are released because they often contain bug fixes or improvements, which may increase operational stability.

iOS Updates

Before updating Trio, it is important to check for any iOS updates. It's good practice to keep your other devices updated wherever possible. If updates are available, check their compatibility with Trio before updating.

macOS and Xcode Version

The table below lists the minimum requirements to build the current release of Trio.
First, you need to know your iOS version, macOS version, and Xcode version.
Next, find your iOS version in the table below, and review the correlating minimum macOS and Xcode versions.
If required, update your macOS and Xcode.

iOS Version

If your iOS version is not listed, e.g., 26.4.1, choose the first row that is lower than your iOS version.

iOS Version Minimum Xcode Version Minimum macOS Version
26.4 16.4 15.3
18.1 16.1 14.5
18.0 15.4 14.5
17.5 15.4 14.0
17.4 15.3 14.0
17.0 15.0 13.5

Update MacOS first, Then Xcode

Your macOS must meet the minimum requirement for the Xcode version needed to support your current iOS, as detailed in the link above.

  • If the macOS is too old, the Xcode version will not appear in the App Store
  • You might think you don't need to update Xcode (but you do)
  • Your build will fail, and mentors might need to help you

Apple Developer - Check for updated agreements

Apple frequently updates its License Agreement for the Developer Program. You need to log in to your developer account to manually check if there is a new agreement to accept. If you see a big red or orange banner atop your Developer Account announcing a new license agreement, like shown below, please read and accept it before building Trio.

Screenshot: Apple Developer

Update Trio with Xcode

The easiest way to update Trio is to download a fresh copy.

Once you completed the Prepare to Update steps listed above, head over to Build with Mac and follow the directions.

Additionals

New Trio users do not need to read the rest of this page.

Frequent Builders

If you build frequently, you do not have to delete the profiles every time. When the build script asks if you want to "Ensure a Year?", you can skip that step.

On the other hand, you may need to delete the provisioning profiles or saved Xcode information about a version of currently on your computer. The maintenance utilities found in the BuildSelectScript can be run to delete your provisioning profiles or clear derived data. Or you can use the individual commands in the next sections to do the same thing.

Delete Provisioning Profiles

You can delete your provisioning profiles by copying this command and pasting it into any terminal. This does not affect any build you currently have on your phone - this just forces your current computer to generate a new one next time you build with Xcode.

  • For those using Xcode 16 or newer:
Copy and Paste to manually remove Xcode 16 Provisioning Profiles on your computer
rm ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles/*.mobileprovision
  • For those using Xcode 15 or older:
Copy and Paste to manually remove Xcode 15 Provisioning Profiles on your computer
rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision

Delete Derived Data

If you build using the same clone on your computer and then update that clone, sometimes you want to remove derived information that Xcode remembers and force it to start fresh.

First quit out of Xcode. The following command will delete all derived information for all your clones, so next time you build any app from an existing clone on your computer, the build will take longer. All dependencies will download again. So wait until you see the "indexing" indication on Xcode before trying to build.

Copy and Paste to manually force Xcode on your computer to start fresh
rm -rf ~/Library/Developer/Xcode/DerivedData

Revoke Certificate Issue

What does it look like if you run into the Revoke Certificate message? When you prepare to Sign the Targets with Xcode, you'll see the message highlighted in the figure below.


Screenshot: Xcode showing Revoke Certificate message

More information is shown in the orange box below.

Revoke certificate

The important part of this message is:

  • ". . . signing certificate . . . private key is not installed in your keychain . . ."

WAIT - You might not need to revoke your certificate

  1. You might get this if you logged in as a different user, have a new computer or if your computer had to undergo a factory reset.
    • You can transfer your keychain to your new computer (or just revoke and keep going).
    • To transfer your keychain, check this Apple Documentation Link.
  2. Your version of Xcode is way out-of-date
    • Mentors have seen this with people trying to build with Xcode 11.4 or earlier
    • Update Xcode to the most recent version

If you revoke and keep going:

  • If you do hit Revoke Certificate, you'll be given a new one.
  • Even with the new certificate, your Apple Developer ID is not affected.
  • You can re-build on the existing Trio app on your device(s) and maintain all your settings with the new certificate.

Be aware that you will have to rebuild to every device that used the certificate you just revoked and if you have other apps built with this certificate, they will stop working too.

Direct Download of Xcode

Many people find updating Xcode from the App Store to be incredibly slow - especially when a new version has just been released. This method still takes time and enough space on your disk but is faster than going through the App Store. Depending on your internet speed, this download can be done in about an hour. Then once it is downloaded, expect another fifteen minutes to several hours (depending on the speed of your computer) for the "xip" file to "expand".

The instructions do not hold your hand.

  • Your macOS must be at the minimum version (or newer) to support the version of Xcode you're about to download
  • You need to know how to log into your Apple Developer account and navigate those menus
  • You need to know how to use Finder to navigate to Downloads
  • You need to know how to drag the Xcode icon into your Applications folder (after download and expand completes)
  • After you have done a direct download, the App Store will not show you updates
    • Either repeat the Direct Download or
    • Delete Xcode from Applications folder
      • Open the App Store and search for Xcode
      • Install fresh
      • After you use the App Store for a download, then Updates will show in the future

Here are the different steps you need to follow when doing the Direct Download instead of the App Store method:

  1. Open the Apple Developer Download page
    • You may need to login
    • Examine the menus (on my computer there are buttons across the top)
    • Click on Applications
    • Look at the available applications, which should include one or more Xcode version
    • Scroll down until you find the item you want (for example, Xcode 15.4 or Xcode 16)
    • Click on View Details and click on the Download button for the "xip" file
  2. Wait for Download to complete
  3. Expand the file by clicking on it in Finder
  4. Move the Xcode icon to Applications after the expansion completes
  5. Check the Command Line Tools setting under Xcode->Settings
    • The selection cannot be blank or Build-Script will fail to open Xcode automatically
    • It should be the same version as your Xcode
  6. Reboot the computer