Remote Build / Emergency Build Prep
These instructions are for installing Loop to your own phone without being connected to a computer. Never build Loop for another person other than your own family members. This method requires the use of a Mac and is not the same as the Browser Build using GitHub and Test Flight.
IMPORTANT: In order to build using Diawi, you must
- Have previously built Loop to that iPhone, or
- Manually add the iPhone’s UUID to your Apple Developer Account before building the Loop app in Xcode.


-
- To remotely build Loop to your phone, you have to use Xcode to create an IPA file and upload it to Diawi.com to create a link to click on the phone you want to build Loop to.
- Since the link from Diawi will only work for 24 hours, store your IPA file in the cloud (iCloud, Dropbox, Google Drive, etc) so you can download it and upload it to Diawi from your phone whenever you need to emergency remote build.
Note: If at anytime after you create your archive, you accidentally close the Archives window and want to open it again later, at the top of the screen click Xcode > Window > Organizer.
- The provisioning profile in the IPA is also only good for up to one year from its creation date, so be sure to keep it updated in your cloud storage. Also, upload a new IPA whenever you update your version of Loop. If the Loop version on your phone is newer than the Loop version of your IPA and you need to do an emergency remote rebuild, you should delete Loop from your phone first which would mean reentering all of your settings and losing your current pod.
- If you use remote overrides/boluses/carbs, be sure to add the LOOP_PUSH_SERVER_ENVIRONMENT variable to Nightscout and set it to production as explained on the remote overrides page in LoopDocs whenever you are using Loop that was built remotely. If you later build Loop directly from Xcode, remove this variable from Nightscout.
Build the IPA File
If you’ve recently successfully build Loop, just open your Loop project in Xcode. If you haven’t, follow all the steps for a new build or a rebuild and build to either a phone or a simulator first to make sure everything is working the way it should.
The images below are based upon Xcode 16.4, your screen may look slightly different.
Select Any iOS Device (arm64) as your project’s device target.

In the Product menu, select Clean Build Folder.

In the Product menu, select Archive. When the archiving process completes, an Archives window will pop up.
If you close the Archives window and want to open it again later, at the top of the screen click Xcode > Window > Organizer.

Select the app you just created (check its Creation Date) and click Distribute App.

Select Custom, and click Next

Set App Thinning to None, uncheck all Additional Options, and click Next.

Select Release Testing, and click Next

Select Automatically Manage Signing, and click Next.

When the file generation process completes, select Export and you’ll see the Export pop-up window. Choose where to save the IPA file (we’ve chosen the Downloads folder). Click Export . You can save it in local storage and then upload it to Diawi and/or a cloud storage service, or you could save it directly to a cloud storage service if your Mac is set up for that.


Upload to Diawi and Install
Make sure your IPA file is accessible on the device you’re uploading to Diawi from. It does not need to be uploaded from the phone you’re building Loop to, but it can be.
Using Safari as your browser, go to diawi.com
Click Add file(s)
- If there’s a cloud icon in the upper right of the file icon, press and hold it and tap Download first.
- Sometimes even after it’s downloaded to your iPhone you have to press and hold the icon first and then tap the icon once a menu appears.
- If you run into an error where Diawi tells you it’s an invalid file type even though it’s a valid .ipa file, try uploading from a different browser, updating your iOS to the newest version, or uploading it from a different phone, computer, or tablet.
Go to the folder where you downloaded your LoopWorkspace folder
Select your IPA file and drag it into Diawi
Uncheck both Allow boxes.
Click More Options

After the app uploads, your screen will look like this.

Enter a password and your email address.
Click Send

- When the link loads, enter your password and click Submit. On the next page, click Install Application. On the popup, click Install.
- Swipe to the home screen to get visual confirmation it is installing (the pie animation overlay graphic on the icon).
- After Loop finishes installing, check its expiration date. In Loop, tap the settings gear icon and tap Issue Report. Look for profileExpiration near the top. This is the date Loop must be rebuilt by before it will stop working. It is also the expiration date of the IPA file.
The video below uses an older version of Xcode, but the process is very similar to the instructions above which were done using Xcode 16,4,
“Under Construction” Additional instructions
These instructions are community based and have not been tested by the LnL team
PART 4 – INSTALL ON IPHONE
Make sure they follow these steps exactly:
1. Open the link in Safari only
• Chrome or text preview will not work
2. Tap Install App
3. Grant permission when prompted
4. Wait for Loop to install
5. Open the Loop app — they are ready to go.
PART 5 – IF THE IPHONE IS NEW (NOT REGISTERED YET)
If this is a brand-new phone that has never had Loop installed, you need to add its UDID to your Apple Developer Devices list before following any of the above steps.
Option A – You Have the iPhone:
1. Connect it to your Mac
2. Open Finder
3. Select the iPhone under Locations
4. Click the Serial Number to display the UDID
5. Right-click > Copy UDID
6. Go to https://developer.apple.com/account
7. Add the UDID under Devices
Option B – The iPhone Is Away from You:
1. Have them open Safari on their iPhone
2. Go to https://get.udid.io
3. Follow prompts to install a temporary profile
4. Their UDID will display
5. Have them copy it and text it to you
6. Add that UDID to your Apple Developer Account under Devices
You are done.