iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: enable debug logging on sim and device after install

authored by

Hima Aramona and committed by
Chad Miller
73270824 d762ecb3

+3
+3
justfile
··· 40 40 APP_PATH=$(find "{{derived_data}}/Build/Products/Debug-iphonesimulator" -name "${BUNDLE_NAME:-Grain}.app" -type d | head -1) 41 41 xcrun simctl install "$SIM" "$APP_PATH" 42 42 xcrun simctl launch "$SIM" {{bundle_id}} 43 + xcrun simctl spawn "$SIM" log config --subsystem {{bundle_id}} --mode level:debug 43 44 echo "Installed and launched on simulator (local/dev API)" 44 45 45 46 # Build + install + launch on simulator (production API — grain.social; same as Xcode Run) ··· 53 54 APP_PATH=$(find "{{derived_data}}/Build/Products/Debug-iphonesimulator" -name "${BUNDLE_NAME:-Grain}.app" -type d | head -1) 54 55 xcrun simctl install "$SIM" "$APP_PATH" 55 56 xcrun simctl launch "$SIM" {{bundle_id}} 57 + xcrun simctl spawn "$SIM" log config --subsystem {{bundle_id}} --mode level:debug 56 58 echo "Installed and launched on simulator (grain.social)" 57 59 58 60 # Run tests ··· 87 89 APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData/Grain-*/Build/Products/Debug-iphoneos -name "${BUNDLE_NAME:-Grain}.app" -type d | head -1) 88 90 echo "Installing $APP_PATH..." 89 91 xcrun devicectl device install app --device {{device_id}} "$APP_PATH" 92 + xcrun devicectl device process execute --device {{device_id}} /usr/bin/log -- config --subsystem {{bundle_id}} --mode level:debug 2>/dev/null || true 90 93 echo "Installed to device {{device_id}}!" 91 94 92 95 # Bump build number, regenerate project, archive, and upload to App Store Connect