Docs: setup guide says where the watch's team and bundle IDs live

This commit is contained in:
gib committed 2026-11-02 14:01:28 -05:00
1 parent bfcbb69550
commit c34b046aae
1 file changed
+6 -4
+6 -4
View File
@@ -77,9 +77,11 @@ fresh credential, or let `scripts/renew-hosts.sh` do every host over SSH. Copy
You need a Mac with Xcode and [XcodeGen](https://github.com/yonaskolb/XcodeGen).
1. Copy `watch/Local.xcconfig.example` to `watch/Local.xcconfig`, which git ignores, and set your
team ID and a bundle ID prefix you own, such as `com.example`. The watch app's bundle ID is
`<prefix>.wristcode.watchkitapp`, which is the `APNS_TOPIC` from step 2.
1. Use your own team and bundle IDs. The project ships with mine: the team `GQJNM5YK2M` and the
bundle ID prefix `org.gbrown`. Replace both everywhere they appear under `watch/`, which
`grep -rn -e GQJNM5YK2M -e org.gbrown watch` lists. They are in `project.yml`, the entitlements,
the `Info.plist` files, `DeviceStore.swift`, the tests and `scripts/testflight.sh`. The watch
app's bundle ID, `<prefix>.wristcode.watchkitapp`, is the `APNS_TOPIC` from step 2.
2. Generate the project and open it:
```sh
@@ -105,7 +107,7 @@ docker compose exec gateway wristcode pair
```
It prints a 6 digit code that works once, for 5 minutes. On the watch, enter your gateway's URL
and the code. The watch then asks to send notifications. Allow it, and send a test notification
in place of the one filled in, and the code. The watch then asks to send notifications. Allow it, and send a test notification
from the gear button, then Notifications, to check the whole chain.
`wristcode device list` shows paired watches, and `wristcode device revoke <name>` unpairs one.