Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / apple / FindFamily / AGENTS.md

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