iOS spike build 2: app icon, scene manifest, crash-proof self-test on demand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-14 20:28:29 +01:00
co-authored by Claude Opus 5.5
parent 77d6e459b2
commit c9ad186de1
11 changed files with 130 additions and 25 deletions
+21 -5
View File
@@ -12,7 +12,7 @@ App Groups work there?
| Piece | What it is |
|---|---|
| `spike/project.yml` | XcodeGen spec; `make project` generates the Xcode project (git-ignored) |
| `spike/App/` | SwiftUI host app `cc.tiredsysadmin.ios.sizzlespike`; runs a self-test at launch |
| `spike/App/` | SwiftUI host app `cc.tiredsysadmin.ios.sizzlespike` with a self-test (Run self-test button) |
| `spike/AU/` | App extension `…sizzlespike.au`: one AUv3 instrument (`aumu` / `sSpk` / `Tsys`), "Tired Sysadmin: Sizzle Spike Sine", a sine voice with a Gain parameter |
| `spike/Shared/Spike.swift` | The App Group id, the component description, and the App Group probe both sides run |
@@ -32,7 +32,7 @@ The self-test shows three checks:
### Build
```sh
make -C ios ipa # → ios/dist/cc.tiredsysadmin.ios.sizzlespike_1.ipa
make -C ios ipa # → ios/dist/cc.tiredsysadmin.ios.sizzlespike_<build>.ipa
```
Needs Xcode and XcodeGen. The device build is unsigned, then ad-hoc signed inside-out
@@ -47,9 +47,9 @@ runtime was installed when the spike was written, so it hasn't been run there.
### Test on the iPad
1. AirDrop or copy `cc.tiredsysadmin.ios.sizzlespike_1.ipa` to the iPad, open it with
TrollStore, install.
2. Open **Sizzle Spike** and note [1]–[3] (screenshot the screen).
1. AirDrop or copy the newest `cc.tiredsysadmin.ios.sizzlespike_<build>.ipa` to the
iPad, open it with TrollStore, install.
2. Open **Sizzle Spike**, tap **Run self-test**, and note [1]–[3] (screenshot).
3. In AUM (or GarageBand → Audio Units, Loopy, Drambo…), add an instrument and look
for **Tired Sysadmin: Sizzle Spike Sine**. Load it, play notes, open its view (it
lists the App Group files).
@@ -66,6 +66,22 @@ What the outcomes mean:
passing sample data through the plugin's saved state, or having the plugin
pick files with a document picker.
### Results so far
- **Build 1 (0.1.0):** AUM lists the plugin, loads it, and it plays from a MIDI
keyboard, so hosts do see AUv3 plugins from a TrollStore install. AUM showed a
red X as its icon (the app had no icon), and the app itself closed right after
opening (it ran the self-test at launch).
- **Build 2 (0.1.1):** adds an app icon, the SwiftUI scene manifest, and makes the
self-test crash-proof for diagnosis. It runs only on the button. Each step is
saved before it runs, so the next launch says where a crash happened
("The previous run stopped during: …"). AVAudioEngine's Objective-C exceptions
are caught by `App/ObjC/SPKTry.m` and printed instead of killing the app.
If the app still closes before showing anything, the crash is at launch. Its log
is in Settings → Privacy & Security → Analytics & Improvements → Analytics Data,
in a file named `SizzleSpike-<date>.ips`.
## Decisions
- **XcodeGen, not a checked-in .xcodeproj:** the project is text you can diff and