You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/build-free-loop/index.html
+48-18Lines changed: 48 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4630,35 +4630,58 @@ <h3 id="select-signing-capabilities-tab">Select Signing & Capabilities Tab<a
4630
4630
<h2id="sign-the-targets">Sign the Targets<aclass="headerlink" href="#sign-the-targets" title="Anchor link to this Header on this Page">¶</a></h2>
4631
4631
<p>It is time to Sign the Targets with your <ahref="../xcode-settings/#add-apple-id">Apple ID</a>.</p>
4632
4632
<p>If you chose to sign manually but have a paid account, you can skip the Free Account steps below.</p>
4633
-
<p>You will be building multiple targets to make a complete app and must sign each one. With <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> 2.2.x, there are 4 targets. With <abbrtitle="Latest release with major updates">Loop 3</abbr>, there are 5 targets.</p>
4633
+
<p>You will be building multiple targets to make a complete app and must sign each one. There are 6 targets to sign.</p>
4634
4634
<p>Start with the <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> target, the first one on the target list. Choose your Apple ID.</p>
4635
4635
<palign="center"><imgalt="zoom of region where user selects signing team" src="../img/team.png" width="400" /></p>
4636
4636
<h3id="free-account">Free Account<aclass="headerlink" href="#free-account" title="Anchor link to this Header on this Page">¶</a></h3>
4637
4637
<p>This section is required if you are using the free account.</p>
4638
4638
<p>Some features of <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> are not available with the Free option, so as you sign, you will need to remove features that are not supported.</p>
4639
+
<blockquote>
4640
+
<p>These directions are for <abbrtitle="program used to build an app">Xcode</abbr> 26.2. They may vary based on <abbrtitle="program used to build an app">Xcode</abbr> version.</p>
4641
+
</blockquote>
4639
4642
<ol>
4640
-
<li>You must remove unsupported capabilities from 2 targets, this is best done as you sign each target:<ul>
4641
-
<li><strong><abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> Target:</strong> Push Notification, Siri, Time Sensitive Notifications and Near Field Communication Tag Reading</li>
<li>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:<ul>
4644
+
<li><strong><abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> Target:</strong><ul>
4645
+
<li>HealthKit <strong>DO NOT DELETE</strong><ul>
4646
+
<li>uncheck the Clinical Health Records if it is checked; </li>
4647
+
<li>finish with the Healthkit Background Delivery checked - you may need to toggle it off and then back on to get the signing to work</li>
4648
+
</ul>
4649
+
</li>
4650
+
<li><abbrtitle="Near-Field Communication is used for scanning devices such as Libre sensors">NFC</abbr> Tag Reading capabilities (delete), (<abbrtitle="Near-Field Communication is used for scanning devices such as Libre sensors">NFC</abbr> Scan is OK)</li>
<li>uncheck the Clinical Health Records if it is checked</li>
4659
+
<li>check the Healthkit Background Delivery</li>
4660
+
</ul>
4661
+
</li>
4662
+
<li>Siri (delete)</li>
4663
+
</ul>
4664
+
</li>
4643
4665
</ul>
4644
4666
</li>
4645
4667
<li>Add the keyword <code>SIRI_DISABLED</code> to the LoopConfigOverride.xcconfig file<ul>
4646
4668
<li>Click on the filename in the left pane of <abbrtitle="program used to build an app">Xcode</abbr> and view it in the <abbrtitle="program used to build an app">Xcode</abbr> editor</li>
4647
-
<li>Examine the file and find the line that starts with<br><code>SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)</code></li>
4648
-
<li>Insert the new keyword (separated by a space) anywhere after <code>$(inherited)</code>and before the slashes near the end of the line</li>
4649
-
<li>When done, that line should be similar to:<br><code>SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) SIRI_DISABLED</code></li>
4669
+
<li>Examine the file and find the line that starts with<code>SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)</code></li>
4670
+
<li>Insert the new keyword (separated by a space) anywhere after <code>$(inherited)</code> before the end of the line</li>
4671
+
<li>When done, that line should be similar to:<code>SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) EXPERIMENTAL_FEATURES_ENABLED SIMULATORS_ENABLED ALLOW_ALGORITHM_EXPERIMENTS DEBUG_FEATURES_ENABLED SIRI_DISABLED</code></li>
4650
4672
</ul>
4651
4673
</li>
4652
4674
</ol>
4653
4675
<p>Details about removing unsupported capabilities:</p>
4654
4676
<ul>
4655
-
<li>You must disable Push Notification, Siri, Time Sensitive Notifications and Near Field Communication Tag Reading<ul>
4656
-
<li>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</li>
4657
-
<li>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</li>
4677
+
<li>You must disable some capabilities to enable building the Free app<ul>
4678
+
<li>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</li>
4679
+
<li>Carefully follow the bullet list above for what needs to be modified - do not delete too many items</li>
4658
4680
</ul>
4659
4681
</li>
4660
4682
<li>The <abbrtitle="program used to build an app">Xcode</abbr> error message starts with "Cannot create . . ." with a list of all the attributes not supported.<ul>
4661
4683
<li>Scroll down and click on the little trash can icon next to each unsupported attribute</li>
4684
+
<li>Do NOT delete the HealthKit completely - only modify the check boxes if required</li>
4662
4685
</ul>
4663
4686
</li>
4664
4687
<li>Scroll up and both the "Cannot create . . ." and "No profiles for . . ." error messages are gone</li>
<p>The graphic below is from an older version of <code>Loop</code>. You must sign all 6 targets listed above.</p>
4672
4695
</blockquote>
4673
4696
<palign="center"><imgalt="Xcode window showing the targets that must be signed" src="../img/success.png" width="750" /></p>
4674
-
<p>After signing the targets, click on the <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> icon under the <code>PROJECTS</code> heading. (Refer to the bright blue box in graphic above - click on that <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> icon.)</p>
4697
+
<h2id="signing-complete">Signing Complete<aclass="headerlink" href="#signing-complete" title="Anchor link to this Header on this Page">¶</a></h2>
4698
+
<p>Now that you have signed your app, you will be able to build following these directions: <ahref="../build-app/#start-build">Start Build</a>. 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.</p>
4699
+
<divclass="admonition important">
4700
+
<pclass="admonition-title">Trust the Free Account</p>
4701
+
<p>The first time you build the free app, you will be told <abbrtitle="program used to build an app">Xcode</abbr> cannot install on the phone because the Free Account name is not trusted.</p>
4702
+
<p>The phone will also show a message stating <code>Untrusted Developer</code>.</p>
4703
+
<p>Once you see that error message, go into the phone and follow these steps:</p>
4675
4704
<ul>
4676
-
<li>If you skip this step, you may get an "Entitlements" Build Error for either <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> or WatchApp<ul>
4677
-
<li>Follow this procedure to fix the error: <ahref="../build-errors/#entitlements-error">Entitlements Error</a></li>
4678
-
<li>Much easier to just click on <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> under <code>Projects</code></li>
4705
+
<li>Select iPhone Settings</li>
4706
+
<li>Select General</li>
4707
+
<li>Select VPN & Device Management</li>
4708
+
<li>At the bottom of the screen, tap on the free developer email address</li>
4709
+
<li>On the next screen, tap on Trust "free developer email address"</li>
4710
+
<li>Tap on "Allow"</li>
4679
4711
</ul>
4680
-
</li>
4681
-
</ul>
4682
-
<h2id="signing-complete">Signing Complete<aclass="headerlink" href="#signing-complete" title="Anchor link to this Header on this Page">¶</a></h2>
4683
-
<p>Now that you have signed your app, return to the Build <abbrtitle="With a capital L, Loop is one of several do-it-yourself artifical pancreas systems">Loop</abbr> page at <ahref="../build-app/#start-build">Start Build</a>.</p>
4712
+
<p>Return to <abbrtitle="program used to build an app">Xcode</abbr> and build again.</p>
0 commit comments