Skip to content

Commit 7323aa3

Browse files
authored
Revise Free Build unsupported capabilities and config instructions (#983)
1 parent f15a9c4 commit 7323aa3

File tree

1 file changed

+41
-17
lines changed

1 file changed

+41
-17
lines changed

docs/build/build-free-loop.md

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ It is time to Sign the Targets with your [Apple ID](xcode-settings.md#add-apple-
7777

7878
If you chose to sign manually but have a paid account, you can skip the Free Account steps below.
7979

80-
You will be building multiple targets to make a complete app and must sign each one. With Loop 2.2.x, there are 4 targets. With Loop 3, there are 5 targets.
80+
You will be building multiple targets to make a complete app and must sign each one. There are 6 targets to sign.
8181

8282
Start with the Loop target, the first one on the target list. Choose your Apple ID.
8383

@@ -90,22 +90,36 @@ This section is required if you are using the free account.
9090

9191
Some features of Loop are not available with the Free option, so as you sign, you will need to remove features that are not supported.
9292

93-
1. You must remove unsupported capabilities from 2 targets, this is best done as you sign each target:
94-
* **Loop Target:** Push Notification, Siri, Time Sensitive Notifications and Near Field Communication Tag Reading
95-
* **Watch App Extension Target:** Siri
96-
1. Add the keyword `SIRI_DISABLED` to the LoopConfigOverride.xcconfig file
93+
> These directions are for Xcode 26.2. They may vary based on Xcode version.
94+
95+
1. You must remove unsupported capabilities from 2 targets, this is best done as you sign each target. The items you must delete (using the trashcan) or edit by adjusting checked boxes are listed in order from top to bottom:
96+
* **Loop Target:**
97+
* HealthKit **DO NOT DELETE**
98+
* uncheck the Clinical Health Records if it is checked;
99+
* finish with the Healthkit Background Delivery checked - you may need to toggle it off and then back on to get the signing to work
100+
* NFC Tag Reading capabilities (delete), (NFC Scan is OK)
101+
* Push Notifications (delete)
102+
* Siri (delete)
103+
* Time Sensitive Notifications (delete)
104+
* **Watch App Extension Target:**
105+
* HealthKit **DO NOT DELETE**
106+
* uncheck the Clinical Health Records if it is checked
107+
* check the Healthkit Background Delivery
108+
* Siri (delete)
109+
2. Add the keyword `SIRI_DISABLED` to the LoopConfigOverride.xcconfig file
97110
* Click on the filename in the left pane of Xcode and view it in the Xcode editor
98-
* Examine the file and find the line that starts with<br> `SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)`
99-
* Insert the new keyword (separated by a space) anywhere after `$(inherited)` and before the slashes near the end of the line
100-
* When done, that line should be similar to:<br>`SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) SIRI_DISABLED`
111+
* Examine the file and find the line that starts with`SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)`
112+
* Insert the new keyword (separated by a space) anywhere after `$(inherited)` before the end of the line
113+
* When done, that line should be similar to: `SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) EXPERIMENTAL_FEATURES_ENABLED SIMULATORS_ENABLED ALLOW_ALGORITHM_EXPERIMENTS DEBUG_FEATURES_ENABLED SIRI_DISABLED`
101114

102115
Details about removing unsupported capabilities:
103116

104-
- You must disable Push Notification, Siri, Time Sensitive Notifications and Near Field Communication Tag Reading
105-
* If the target you are signing does not use one of these attributes, no error message will appear when you select (personal team) for that target
106-
* If the target you are signing does use one of these attributes, an error message will appear when you select (personal team) for that target
117+
- You must disable some capabilities to enable building the Free app
118+
* If the target you are signing uses a capability that required a paid account, an error message will appear when you select (personal team) for that target
119+
* Carefully follow the bullet list above for what needs to be modified - do not delete too many items
107120
- The Xcode error message starts with "Cannot create . . ." with a list of all the attributes not supported.
108121
- Scroll down and click on the little trash can icon next to each unsupported attribute
122+
- Do NOT delete the HealthKit completely - only modify the check boxes if required
109123
- Scroll up and both the "Cannot create . . ." and "No profiles for . . ." error messages are gone
110124
- You are done with this target
111125
- Proceed to the next target
@@ -119,12 +133,22 @@ Click on each of the three remaining targets shown in the red box below, and rep
119133
![Xcode window showing the targets that must be signed](img/success.png){width="750"}
120134
{align="center"}
121135

122-
After signing the targets, click on the Loop icon under the `PROJECTS` heading. (Refer to the bright blue box in graphic above - click on that Loop icon.)
136+
## Signing Complete
123137

124-
- If you skip this step, you may get an "Entitlements" Build Error for either Loop or WatchApp
125-
- Follow this procedure to fix the error: [Entitlements Error](build-errors.md#entitlements-error)
126-
- Much easier to just click on Loop under `Projects`
138+
Now that you have signed your app, you will be able to build following these directions: [Start Build](build-app.md#start-build). If this is your first free build on this phone, you will need to build once, then "Trust the Free Account" and then build a second time. This is only for the first build. Subsequent builds on that phone are already trusted.
127139

128-
## Signing Complete
140+
!!! important "Trust the Free Account"
141+
The first time you build the free app, you will be told Xcode cannot install on the phone because the Free Account name is not trusted.
142+
143+
The phone will also show a message stating `Untrusted Developer`.
144+
145+
Once you see that error message, go into the phone and follow these steps:
146+
147+
* Select iPhone Settings
148+
* Select General
149+
* Select VPN & Device Management
150+
* At the bottom of the screen, tap on the free developer email address
151+
* On the next screen, tap on Trust "free developer email address"
152+
* Tap on "Allow"
129153

130-
Now that you have signed your app, return to the Build Loop page at [Start Build](build-app.md#start-build).
154+
Return to Xcode and build again.

0 commit comments

Comments
 (0)