Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / apple / FindFamily / AGENTS.md
| 1 | # AGENTS.md — apple/FindFamily (FindFamily for iOS) |
| 2 | |
| 3 | SwiftUI iPhone app, bundle `cc.findfamily.app.1`, team `M42H545N93`, iOS 18+. Android counterpart: `findfamily/` (same relay protocol, same PQC formats). |
| 4 | |
| 5 | ## Layout |
| 6 | - `Package.swift`: SwiftPM library target `FindFamily` rooted at `FindFamilyiOS/` (xtool requires a library product). |
| 7 | - `xtool.yml`: bundle id, `infoPath`, and `assetCatalog.compiledDir` (only in the `vayun-mathur/xtool` fork). |
| 8 | - `FindFamilyiOS/Info.plist`: no `$(...)` build settings and no version keys; xtool fills in the bundle keys. |
| 9 | - `Resources/`: `Assets.car` + loose icon PNG + `assets-partial-Info.plist`, built from `FindFamilyiOS/Assets.xcassets`. |
| 10 | - `FindFamilyiOS/Crypto/PQCStubs.c` is excluded from the build (unreferenced; documents the future Rust PQC link). |
| 11 | |
| 12 | ## Rules |
| 13 | - Versions come only from root `version.txt`. Never hand-edit `CFBundleVersion` / `CFBundleShortVersionString`. |
| 14 | `scripts/stamp-version.sh <plist>` writes code=line 1 and short=line 2 (`v2.6.11b` -> `2.6.11`) on the release builder. |
| 15 | - After any change to `Assets.xcassets`, run `scripts/assets.sh compile` on a Mac and commit `Resources/`. |
| 16 | The release builder runs `scripts/assets.sh check` and fails if the catalog is stale. |
| 17 | - No `.xcodeproj` is committed. For Xcode, open `Package.swift` directly or run `xtool dev generate-xcode-project` |
| 18 | (the generated project is gitignored). |
| 19 | - Never commit signing material or App Store Connect keys. |
| 20 | |
| 21 | ## Verify |
| 22 | ``` |
| 23 | xcodebuild -scheme FindFamily -destination 'generic/platform=iOS' build CODE_SIGNING_ALLOWED=NO # Mac |
| 24 | xtool dev build # Linux / Mac with the fork |
| 25 | ``` |
| 26 | |
| 27 | ## Release |
| 28 | The maproj release pipeline (`../location_share_server/scripts/release-build-ios.sh`) runs after the Android release: |
| 29 | stamp version -> assets check -> `xtool dev build --configuration release --distribution app-store --ipa` |
| 30 | -> `xtool dist upload` -> `xtool dist submit` (creates the App Store version, attaches the build, submits for review). |