forked from Free-for-testing-2025/Code-test
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_debug.sh
More file actions
executable file
·26 lines (22 loc) · 807 Bytes
/
build_debug.sh
File metadata and controls
executable file
·26 lines (22 loc) · 807 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
#!/bin/bash
# Script to build the backdoor project in Debug mode with correct flags
# This fixes the "Unknown build action 'DEBUGGER_ENABLED'" error
echo "=== Building in Debug Mode with correct flags ==="
# Use xcodebuild with proper flags format
xcodebuild \
-project 'backdoor.xcodeproj' \
-scheme 'backdoor (Debug)' \
-configuration Debug \
-arch arm64 -sdk iphoneos \
SWIFT_ACTIVE_COMPILATION_CONDITIONS="DEBUG DEBUGGER_ENABLED" \
OTHER_SWIFT_FLAGS="-DDEBUG=1" \
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
SWIFT_COMPILATION_MODE="singlefile" \
GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 DEBUGGER_ENABLED=1" \
GCC_OPTIMIZATION_LEVEL=0 \
COPY_PHASE_STRIP=NO \
ENABLE_TESTABILITY=YES \
INCLUDE_DEBUGGER=YES \
ENABLE_ENHANCED_LOGGING=YES \
VERBOSE_LOGGING=YES
echo "Build completed!"