- 25 minutes, if already have updates done
- 40-90 minutes, if need to install Apple update(s)
- Update macOS, Xcode, iOS, and/or watchOS
- Download updated Loop code
- Open in Xcode, sign targets
- Add optional code customizations
- Build onto your iPhone
- Resolve Build Errors
- "What is an update?" Anytime you want to change branches (i.e., go from omnipod-testing to dev branch), change customizations, or grab updates to the same branch you built with before...that is an "update" of your Loop app.
- "Do I delete my old Loop app first?" Definitely not! If you keep your Loop app on your phone, your Loop settings (and existing pod) will continue to work the same after the update. Seamless.
- "Do I need to start a new pod when I update?" No. Your existing pod session will continue seamlessly if you are using the same Developer Account to sign the Loop 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 as your existing app was built with (this includes going from free to paid), then you will be installing a brand new (second) Loop app on your phone. Your existing pod won't work with the new app, so you might want to time this transition when you are due to change pods. Delete the old app once you get the new one all set up.
- "What if it is a new computer but the same developer account?" No big deal...you just want to make sure the computer has Homebrew installed already and you've added your developer account to Xcode preferences.
When to Update Loop⌁
You will have to rebuild your Loop app at a minimum once every 12 months. The apps built and signed by you in Xcode with a paid developer account will only last for 12 months before they expire and need rebuilding. So, at least once per year you will have to rebuild your app and go through this update process.
Under ordinary circumstances, you do not have to update your Loop app until you are ready to grab new features. However, we encourage regular updates when a new version is released because they often contain bug fixes or improvements which may increase operational stability.
Since omnipod-testing branch has been retired and Loop v2.0 has been released, this is a good time to update your Loop app to the master branch. There will be some translations fixes in the near future. If you encounter any strange translations in master branch, please report them in in this Looped Group thread so that I can get them fixed. Thank you!
Step 1: Avoid Build Errors in advance⌁
Update to Xcode 11.3
Between Loop app builds, there's a high likelihood that Apple has updated one or more of the systems involved in your Loop app. If you miss macOS or Xcode updates, you may run into build problems. For example, the newest iOS on your phone requires the newest Xcode version to properly build Loop. Currently the most recent version of Xcode is 11.3. UPDATE TO XCODE 11.3 BEFORE UPDATING YOUR LOOP APP.
Check your Apple Developer Account
On October 28, 2019, Apple updated its License Agreement for the Developer Program. You need to login to your developer account and accept the new agreement, or you will get a build error.
Restart computer after updating Xcode
Make sure to restart your computer after updating Xcode. There's a known issue that happens often enough to be frustrating if you don't reboot. Either a build error about missing simultors or a "device not connected" (even when phone is connected). Just restart computer. It's easy enough.
Step 2: Download Updated Loop Code⌁
After you've finished the updates to your devices listed above, you can move onto downloading updated Loop code. You will not be simply using your old downloaded Loop code (and in fact, you can delete those old folders now if you want). Click on ONE of the links below to download an updated version of the Loop code. Almost every user should be using Master branch of Loop now. On December 31, 2019, Loop v2.0 was released and offers support for Omnipod and Medtronic users, as well as numerous features that have been in development and testing for awhile.
Step 3: Build Like Normal⌁
From here it is just like the old directions...you can go straight to Step 14 Build Loop app and do just like you did the first time. Open the project, plug in the phone, sign four targets, code customizations (if wanted), and then build button. Easy peasy.
Note: If this is a computer that hasn't built Loop before, you would want to make sure to do Step 7: install Homebrew before doing your build on that computer.
Step 4: Check Build Errors page if needed⌁
CHECK BUILD ERRORS PAGE
If you get a build error...still check the Build Errors page. Because even if your exact error isn't there...the information you NEED to provide when asking for help is listed out on that page. And that information is critical. CRITICAL to be able to troubleshoot your build error.