Repository Public
1# Installation23SP Vault is installed privately on the owner's iPhone, straight from Xcode. It is not on the App Store.45## Apple Developer configuration (done on 2026-12-02)67| Item | Value |8|---|---|9| Team | Simon-Pierre Boucher — `3YM54G49SN` |10| App ID | `ai.spboucher.idcardvault`, explicit, name "SP ID and Card Vault" (the portal refuses "&" in a name), portal id `WQDX3WA468` |11| Capabilities | Data Protection — Complete Protection. Nothing else (In-App Purchase is on by default for every App ID and is unused) |12| Signing | Automatic, Apple Development certificate |13| Provisioning profile | "iOS Team Provisioning Profile: ai.spboucher.idcardvault", created by Xcode (`-allowProvisioningUpdates`), expires 2027-12-03 |1415The App ID was created through the Safari session already signed in to developer.apple.com: `scripts/apple_dev_setup.applescript` runs `scripts/portal/inventory.js` (read-only check) and `scripts/portal/create-app-id.js` (idempotent creation, then read-back). The scripts read no cookie, password or 2FA code; if the session has expired they stop and ask the owner to sign in.1617```bash18P=https://developer.apple.com/account/resources/identifiers/list19osascript scripts/apple_dev_setup.applescript "$PWD/scripts/portal/inventory.js" developer.apple.com /account "$P"20```2122## Requirements2324- Xcode 27 or later, XcodeGen (`brew install xcodegen`).25- iPhone on iOS 26 or later with a passcode and Face ID set up.26- The iPhone registered in the developer account (Xcode does it on first connection) and Developer Mode on (Settings ▸ Privacy & Security ▸ Developer Mode).2728## Install on the iPhone29301. Connect the iPhone by cable, unlock it and accept "Trust This Computer".312. Build and install the Release configuration:3233```bash34xcodegen generate35xcrun devicectl list devices # note the iPhone's identifier36xcodebuild -project SPVault.xcodeproj -scheme SPVault -configuration Release \37 -destination 'platform=iOS,id=<DEVICE-UDID>' -derivedDataPath build/dd-device \38 -allowProvisioningUpdates build39xcrun devicectl device install app --device <DEVICE-ID> build/dd-device/Build/Products/Release-iphoneos/SPVault.app40xcrun devicectl device process launch --device <DEVICE-ID> ai.spboucher.idcardvault41```4243Or open `SPVault.xcodeproj`, choose the iPhone, set the scheme's Run configuration to Release and press Run.44453. First launch: the onboarding checks Face ID, asks for a recovery passphrase and creates the vault.4647Install the **Release** configuration for daily use. Debug builds contain the test hooks described in `ARCHITECTURE.md` (launch arguments, scripted key protector, demo cards); Release builds do not.4849A development-signed app runs for one year (until the provisioning profile expires); reinstalling from Xcode renews it. Reinstalling over the existing app keeps the vault. Deleting the app deletes the vault files; export a `.spvault` backup first.5051## First-run checklist on the device5253These can only be verified on a physical iPhone (the simulator has no camera, no Secure Enclave, no passcode and no data-protection enforcement):5455- [ ] Onboarding creates the vault; Face ID prompt appears with the app's reason text.56- [ ] Closing and reopening the app asks for Face ID; a non-matching face keeps it locked.57- [ ] The app switcher shows the curtain, not a card.58- [ ] Scanning a real card: edges detected, auto-capture, perspective corrected, OCR proposals.59- [ ] Bank card back: the security code is proposed for masking and is black in the saved photograph.60- [ ] Reflections follow the tilt of the phone; haptics on unlock, flip and lock.61- [ ] Security Center: "File protection" shows every file protected; "Key" shows the Keychain protection.62- [ ] Export a `.spvault` backup to Files, then restore it.63- [ ] Add a second face in Settings ▸ Face ID: the app asks for the recovery passphrase.6465## TestFlight (internal only)6667Set up on 2026-12-02 at the owner's request. App Store Connect record "SP ID & Card Vault", id `6842249888`, SKU `spidcardvault-ios-001`; the home-screen name is "SP ID Vault" (renamed so it is not confused with the SP Vault password manager). The app is never submitted for review.6869```bash70scripts/release.sh archive # Release archive, checks signature, test hooks and network symbols71scripts/release.sh export # .ipa for App Store Connect72scripts/release.sh upload # altool, API key from ~/.appstoreconnect/asc.env73scripts/release.sh wait # until the build is VALID74scripts/release.sh group # internal group "Test"75```7677Build 1.0.0 (1): delivery `18ef2d39-5e94-4629-8140-275b45b057fb`, VALID on 2026-12-02. Bump `CURRENT_PROJECT_VERSION` in `project.yml` before each new upload. Apple requires `UIRequiresFullScreen` for a portrait-only app (error 90474 otherwise).78