Skip to content

Commit be92d21

Browse files
authored
Merge pull request #843 from marionbarker/working-docs
Simplify Configure Identifiers for Loop section
2 parents 3fcc066 + 0388e8a commit be92d21

File tree

6 files changed

+173
-158
lines changed

6 files changed

+173
-158
lines changed

docs/build/xcode-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The very first time you open Xcode it may install a package of command line tool
3939

4040
* Check that your Command Line Tools installed correctly.
4141
- First, open Xcode Settings
42-
* Click on the word **`Xcode`** in the top menu bar (just to the right of the Apple icon in the upper-left corner) and select `Settings` in the drop-down menu
42+
* Click on the word **`Xcode`** in the top menu bar (just to the right of the Apple icon in the upper-left corner) and select `Settings` in the dropdown menu
4343
- Then select the `Locations` tab in the Settings window to see the dropdown menu for Command Line Tools. Make sure the Xcode version listed matches what you just installed (not the version in this graphic)
4444
* If it's blank, use the blue arrows to the right of the Command Line Tools row to select it
4545

docs/gh-actions/build-dev-browser.md

Lines changed: 78 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,59 +74,108 @@ If you have already completed the One-Time Changes, skip ahead to [Build `Branch
7474

7575
#### Transition to `dev`
7676

77-
When updating from&nbsp;_<span translate="no">Loop</span>_&nbsp;3.2.3 to `dev`, you will need to take some extra steps.
77+
When updating from&nbsp;_<span translate="no">Loop</span>_&nbsp;3.2.3 to `dev` (version 3.3.0), you will need to take some extra steps.
7878

7979
**We recommend most users leave their default branch as `main`.**
8080

8181
* This is the safest choice if you are choosing to build `dev branch` now because you want the bug fixes and features that are found in `dev`
8282
* When version 3.4.0 is released, most users will return to the building the `main branch`
8383
* At that time, simply update your `main` branch and return to using released code
84-
* Each action below requires you to select the `dev` branch in the drop-down menu
84+
* Each action below requires you to select the `dev` branch in the dropdown menu
8585

8686
Here is a summary of the extra steps you will follow as you progress through this section.
8787

88-
1. Confirm the status of your&nbsp;<span translate="no">*GitHub* Personal Access Token</span>
89-
* It should be configured with permission scope of `repo, workflow` and to never expire
90-
* You can check this using directions at [*GitHub* Token](gh-update.md#github-token){: target="_blank" }
9188
1. [Add and Update `New Identifier`](#add-and-update-new-identifier)
9289
1. [`Create Certificates`](#create-certificates)
9390
1. [`Build Loop`](#build-branch)
9491

95-
#### Automatic Creation of `alive branch`
96-
97-
The `alive branch` is created automatically when you run the `Build Loop` action using the `dev branch` (version 3.3 or later). It is used as part of the automatic build process that will be released with the next version.
98-
99-
??? warning "I got an error regarding the `alive branch` (click to open/close)"
100-
* Sometimes you get an error about the `alive branch`
101-
* If you do get an error, delete the `alive branch` and run the `Build Loop` action again
102-
* Use this [GitHub link](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#deleting-a-branch){: target="_blank" } or ask for help when deleting a branch
103-
10492
#### Add and Update New `Identifier`
10593

10694
The `bundle ID` for the "`widget`" changed from "`SmallStatusWidget`" to the more descriptive "`LoopWidgetExtension`".
10795

10896
* You need to run `Add Identifier` - be sure to select the `dev branch` when you run this action
10997
* Wait for it to succeed
110-
* Add the `App Group` to this one new Identifier
98+
99+
??? tip "For detailed instructions (Click to open/close)"
100+
Refer to the graphic below for the numbered steps:
101+
102+
1. Click on the `Actions` tab of your <code>LoopWorkspace</code> repository
103+
1. On the left side, click on 2. <code>Add Identifiers</code>
104+
1. On the right side, click `Run Workflow` to show a dropdown menu
105+
* You will see your default branch (typically this is `main`)
106+
* You should select the `dev` branch in the dropdown menu near the word `Optional` in the graphic
107+
1. Tap the green button that says `Run workflow`.
108+
109+
![add identifiers using github actions](img/action-02-add-identifiers.svg){width="700"}
110+
{align="center"}
111+
112+
The `Add Identifiers` &nbsp;<span class=notranslate>Action</span>&nbsp; should succeed or fail in a few minutes. Do not continue to the next step until this one succeeds.
113+
114+
* If you see the green check (:octicons-check-circle-fill-16:{: .passed }) continue to the next section
115+
* If you see the red `X` (:octicons-x-circle-fill-16:{: .failed }):
116+
* [Examine the Error](gh-errors.md#examine-the-error) tells how to view the file needed to diagnose your problem.
117+
* [Action: Add Identifiers Errors](gh-errors.md#action-add-identifiers-errors) tells you what to search for in the file
118+
* Resolve the error and repeat the Action: [Add Identifiers](#add-identifiers)
119+
120+
#### Add `App Group` to New `Identifier`
121+
122+
* Open the [Certificates, Identifiers & Profiles: Identifiers List](https://developer.apple.com/account/resources/identifiers/list){: target="_blank" } page.
123+
* Add the `Loop App Group` to the new "`LoopWidgetExtension`" identifier
111124

112125
| `NAME` | `IDENTIFIER` |
113126
|-------|------------|
114127
| `Loop Widget Extension` | `com.TEAMID.loopkit.Loop.LoopWidgetExtension` |
115128

116-
* Open the [Certificates, Identifiers & Profiles: Identifiers List](https://developer.apple.com/account/resources/identifiers/list){: target="_blank" } page.
117-
* Click on the "`LoopWidgetExtension`" identifier
118-
* Edit the App Group to include `group.com.TEAMID.loopkit.LoopGroup` where you use your `TEAMID`
129+
??? tip "For detailed instructions (Click to open/close)"
130+
* Open the [Certificates, Identifiers & Profiles: Identifiers List](https://developer.apple.com/account/resources/identifiers/list){: target="_blank" } page.
131+
* Click on the "`LoopWidgetExtension`" identifier to open the `Edit Your App ID Configuration` screen.
132+
133+
Looking at the `App Services` column, scroll down to the `App Groups` row
119134

120-
??? tip "Other Identifiers (Click to Open/Close)"
135+
* Ensure the check box (under the `Capabilities column`) for `App Groups` is checked
136+
* If the word `Edit` shows up under `NOTES`, return to the identifiers list
137+
* Tap on the `< All Identifiers` button at the top left
138+
* If the word `Configure` shows up, tap on it
139+
* This opens the `App Group Assignment` screen
140+
* Check the box by `Loop App Group` that uses your `TEAMID` in `group.com.TEAMID.loopkit.LoopGroup` and then `Continue`
141+
142+
If you had to modify the identifier, the `Save` button at the top right will become active
143+
144+
* Tap on `Save`
145+
* This opens the `Modify App Capabilities confirmation` screen
146+
* Click on `Confirm`
147+
148+
If you did not need to make changes, the `Save` button will not be active.
149+
150+
* Tap on the `< All Identifiers` button at the top left
151+
152+
The full list of Identifiers should be displayed again.
153+
154+
!!! note "Other Identifiers"
121155
All other identifiers should be already set up.
122156

123157
* If they are not, refer to [Configure to Use Browser: Add App Group to Identifiers](gh-first-time.md#add-app-group-to-identifiers){: target="_blank" }
124-
* With the `dev branch`, only the App Group needs to be added; all other `Identifier` settings are automatically included.
125158

126159
#### Create Certificates
127160

128161
You must run the action `Create Certificates` again because the `Identifiers` were updated. Be sure that you run this for the `dev branch`
129162

163+
??? tip "For detailed instructions (Click to open/close)"
164+
Refer to the graphic below for the numbered steps:
165+
166+
1. Click on the "<code>Actions</code>" tab of your <code>LoopWorkspace</code> repository
167+
1. On the left side, click on "`Create Certificates`"
168+
1. On the right side, click "`Run Workflow`" to show a dropdown menu
169+
* You will see your default branch (typically `main`)
170+
* You should select the `dev` branch in the dropdown menu near the word `Optional` in the graphic
171+
1. Tap the green button that says "`Run workflow`".
172+
173+
![create certificates using github actions](img/action-03-create-certs.svg){width="700"}
174+
{align="center"}
175+
176+
1. Wait a minute or two for the action to finish
177+
* If this action fails, head over to [Action: 3. Create Certificates Errors](gh-errors.md#action-create-certificates-errors)
178+
130179
### Build `Branch`
131180

132181
> **We recommend most users leave their default branch as `main`.**
@@ -144,6 +193,15 @@ If you have one branch as default, for example `main`, and choose to build a dif
144193
* Refresh the browser if you are unsure if the action started
145194
* Do not start a new action until the first one completes
146195

196+
#### Automatic Creation of `alive branch`
197+
198+
The `alive branch` is created automatically when you run the `Build Loop` action using the `dev branch` (version 3.3 or later). It is used as part of the automatic build process that will be released with the next version.
199+
200+
??? warning "I got an error regarding the `alive branch` (click to open/close)"
201+
* Sometimes you get an error about the `alive branch`
202+
* If you do get an error, delete the `alive branch` and run the `Build Loop` action again
203+
* Use this [GitHub link](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#deleting-a-branch){: target="_blank" } or ask for help when deleting a branch
204+
147205
## Automatic Update & Build
148206

149207
The automatic update and build features of the development branch are only available if you set the `dev` branch as your default branch. Be sure to read the [Automatic Update & Build](automatic.md) if you did this.

docs/gh-actions/gh-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ Select `Action: Build Loop`
515515
Refer to the first graphic below:
516516
517517
* Tap on Run Workflow (on the right side)
518-
* Tap on the drop-down arrow to the right of the default `branch`
518+
* Tap on the dropdown arrow to the right of the default `branch`
519519
* Choose the `branch` you just created
520-
* Start to type `patch` in the `branch` selection drop-down
520+
* Start to type `patch` in the `branch` selection dropdown
521521
* Only `branches` with that phrase will be displayed
522522
* After you have the correct `branch` selected, tap on run workflow
523523

0 commit comments

Comments
 (0)