Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .claude/skills/simulator-control/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Without `idb` the inspection workflows (screenshot + SwiftData + logs) still wor
export PATH="$HOME/.local/bin:$PATH"
UDID=$(xcrun simctl list devices booted | awk -F'[()]' '/Booted/ {print $2}')
idb connect $UDID # starts idb_companion alongside the running sim
BUNDLE=org.dashfoundation.SwiftExampleApp
BUNDLE=org.dashfoundation.DashDeveloperPro

# === INSPECT ===
xcrun simctl io booted screenshot /tmp/sim.png # screenshot
Expand Down Expand Up @@ -278,8 +278,10 @@ If `idb connect` succeeds but `idb ui describe-all` returns a single root elemen
The skill assumes the binary on the simulator is current. It's not, if you've built but forgotten to install. After every `./build_ios.sh --target sim` (or any code change), push the fresh artifact:

```bash
BUNDLE=org.dashfoundation.SwiftExampleApp
APP=$(find ~/Library/Developer/Xcode/DerivedData -name "${BUNDLE##*.}.app" -path "*Debug-iphonesimulator*" -not -path "*Index.noindex*" 2>/dev/null | head -1)
BUNDLE=org.dashfoundation.DashDeveloperPro
# The .app on disk is named after PRODUCT_NAME (still "SwiftExampleApp"), which
# differs from the bundle id — find by the product name, launch by the bundle id.
APP=$(find ~/Library/Developer/Xcode/DerivedData -name "SwiftExampleApp.app" -path "*Debug-iphonesimulator*" -not -path "*Index.noindex*" 2>/dev/null | head -1)
xcrun simctl install booted "$APP"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
xcrun simctl launch booted "$BUNDLE" # or terminate-then-launch to force a fresh process
```
Expand Down
2 changes: 2 additions & 0 deletions packages/swift-sdk/SwiftExampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleDisplayName</key>
<string>Dash Developer Pro</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = org.dashfoundation.SwiftExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = org.dashfoundation.DashDeveloperPro;
Comment thread
coderabbitai[bot] marked this conversation as resolved.
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
Expand Down Expand Up @@ -473,7 +473,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = org.dashfoundation.SwiftExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = org.dashfoundation.DashDeveloperPro;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
Expand Down
4 changes: 2 additions & 2 deletions packages/swift-sdk/get_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ set -euo pipefail
# [--session <ts|latest>]
#
# Defaults:
# bundle-id: org.dashfoundation.SwiftExampleApp
# bundle-id: org.dashfoundation.DashDeveloperPro
# out: ./logs-<device-name>-<session-ts>
# device: interactive picker when more than one is available
# session: interactive picker when more than one is available

BUNDLE_ID="org.dashfoundation.SwiftExampleApp"
BUNDLE_ID="org.dashfoundation.DashDeveloperPro"
OUT_DIR=""
DEVICE=""
SESSION=""
Expand Down
Loading