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): tell xcodebuild -list which container to list

Beenu Arora3175f4f5cc3e
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml
index 36cdb0907..027175aa7 100644
--- a/.github/workflows/mobile.yml
+++ b/.github/workflows/mobile.yml
@@ -211,9 +211,21 @@ jobs:
working-directory: apps/mobile/ios
run: |
set -euo pipefail
- scheme=$(xcodebuild -list -json | python3 -c 'import json,sys; print(json.load(sys.stdin)["workspace"]["schemes"][0])')
+ ws=$(ls -d *.xcworkspace | head -1)
+ # `-list` must be told which container to list. Without
+ # `-workspace` it describes the *project*, so the JSON has a
+ # `project` key and reading `["workspace"]` is a KeyError — which
+ # is exactly how the first run of this job failed. Both keys are
+ # accepted so the step does not depend on which one Xcode
+ # happens to emit.
+ # One expression, deliberately: a `python3 -c` body indented to
+ # match the YAML block keeps its leading spaces and dies with an
+ # IndentationError, which reads as a broken runner rather than a
+ # 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"
xcodebuild \
- -workspace "$(ls -d *.xcworkspace | head -1)" \
+ -workspace "$ws" \
-scheme "$scheme" \
-configuration Release \
-sdk iphonesimulator \