-
-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathcleardebugdata.sh
More file actions
executable file
·28 lines (22 loc) · 808 Bytes
/
cleardebugdata.sh
File metadata and controls
executable file
·28 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
echo ""
# Check if TeamID.xcconfig exists and extract team ID
TEAM_ID_CONFIG="WWDC/TeamID.xcconfig"
if [ -f "$TEAM_ID_CONFIG" ]; then
# Extract team ID from the config file
TEAM_ID=$(grep "DEVELOPMENT_TEAM=" "$TEAM_ID_CONFIG" | cut -d'=' -f2)
DEBUG_FOLDER_PATH="$HOME/Library/Application Support/io.wwdc.app${TEAM_ID}.debug"
else
# Fallback to original path without team ID
DEBUG_FOLDER_PATH="$HOME/Library/Application Support/io.wwdc.app.debug"
fi
if [ ! -d "$DEBUG_FOLDER_PATH" ]; then
echo "Debug data folder doesn't exist at $DEBUG_FOLDER_PATH"
echo "Nothing to be done, all good!"
echo ""
exit 0
fi
echo "Removing DEBUG data folder at $DEBUG_FOLDER_PATH"
rm -R "$DEBUG_FOLDER_PATH" || { echo "Failed to remove :("; exit 1; }
echo "All good!"
echo ""