Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(mobile): compile and link iOS for the simulator without Metro's bundle phase

Beenu Aroraf13c12e4697a
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml
index 027175aa7..c117b7bb0 100644
--- a/.github/workflows/mobile.yml
+++ b/.github/workflows/mobile.yml
@@ -184,7 +184,7 @@ jobs:
# — so this proves the native project configures and compiles, and the
# README does not claim more.
ios-simulator:
- name: Mobile — iOS simulator build (no signing)
+ name: Mobile — iOS simulator compile + link (no signing, no JS bundle)
runs-on: macos-15
timeout-minutes: 60
defaults:
@@ -224,10 +224,25 @@ jobs:
# broken script.
scheme=$(xcodebuild -list -json -workspace "$ws" | python3 -c 'import json,sys; d=json.load(sys.stdin); c=d.get("workspace") or d.get("project") or {}; s=c.get("schemes") or []; sys.exit("xcodebuild -list reported no schemes") if not s else print(s[0])')
echo "building scheme $scheme from $ws"
+ # Debug, not Release, and the reason is worth stating because it
+ # bounds what this job proves. A Release build runs React
+ # Native's bundle phase, and Metro's asset hashing dies on this
+ # runner with `The "list" argument must be an instance of
+ # SharedArrayBuffer...` while reading one of expo-router's PNGs —
+ # a Metro/Node incompatibility that has nothing to do with this
+ # app's code. Chasing it here would be chasing someone else's
+ # bug on the one platform that cannot produce a shippable
+ # artefact anyway.
+ #
+ # What a Debug simulator build does prove is the whole of what
+ # this job is for: the Expo config generates a valid Xcode
+ # project, the pods resolve, and every native module compiles and
+ # links. **JS bundling is proven on the Android job**, which runs
+ # `assembleRelease` and therefore does bundle.
xcodebuild \
-workspace "$ws" \
-scheme "$scheme" \
- -configuration Release \
+ -configuration Debug \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
diff --git a/apps/mobile/README.md b/apps/mobile/README.md
index 8fc32bd56..b21d63c45 100644
--- a/apps/mobile/README.md
+++ b/apps/mobile/README.md
@@ -35,7 +35,7 @@ app up:
| `src/lib/**` unit tests | **Run in CI.** Session handling, push registration, approval presentation. |
| `tsc --noEmit` | **Run in CI.** |
| Built for a device | **Android, yes — in CI.** `expo prebuild` plus a Gradle `assembleRelease` produces an installable APK on every change, signed with a throwaway debug keystore. It installs on a handset; it is not store-signable, which needs a Google Play account. |
-| Built for an iPhone | **No.** The iOS job compiles the app for the **simulator** on a macOS runner, which proves the native project configures and builds. A device build needs an Apple developer account and a provisioning profile. |
+| Built for an iPhone | **No.** The iOS job compiles and links the app for the **simulator** on a macOS runner — the Expo config generates a valid Xcode project, the pods resolve and every native module builds. It does not bundle the JavaScript: Metro's asset hashing fails on that runner inside one of expo-router's PNGs, which is a Metro/Node incompatibility rather than this app's code, and the Android job bundles anyway. A device build needs an Apple developer account and a provisioning profile. |
| Push delivered to a real handset | **No.** The delivery path exists and is tested — `services/realtime/src/native-push.ts` speaks APNs and FCM HTTP v1, with eleven tests over the request shapes and the three outcomes. What is missing is credentials: an APNs `.p8` with its key and team ids, and an FCM service account. Until they exist the sender returns `not_configured` naming each missing variable, and **nothing reports a delivery**. |
| Voice input | **Transcription is on-device by construction.** `src/lib/voice.ts` takes a recogniser that returns a *string*; no audio type appears anywhere in it, a device with no offline model is refused rather than silently using the cloud recogniser, and `scripts/check_no_audio_egress.py` fails the build if any module here touches a capture API or sends a binary body. Not exercised against a real microphone. |