File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 1313#
1414# Usage:
1515# ./scripts/build-ios-sim.sh
16+ # BACKEND=regtest ./scripts/build-ios-sim.sh
1617set -euo pipefail
1718E2E_ROOT=" $( cd " $( dirname " $0 " ) /.." && pwd) "
1819IOS_ROOT=" $( cd " $E2E_ROOT /../bitkit-ios" && pwd) "
1920
20- # Default to E2E build unless explicitly disabled.
21- E2E_FLAG=" ${E2E:- true} "
21+ BACKEND=" ${BACKEND:- local} "
22+ E2E_BACKEND=" local"
23+ E2E_NETWORK=" regtest"
2224XCODE_EXTRA_ARGS=()
23- if [[ " $E2E_FLAG " == " true" ]]; then
24- XCODE_EXTRA_ARGS+=(SWIFT_ACTIVE_COMPILATION_CONDITIONS=' $(inherited) E2E_BUILD' )
25+
26+ if [[ " $BACKEND " == " regtest" ]]; then
27+ E2E_BACKEND=" network"
28+ elif [[ " $BACKEND " == " local" ]]; then
29+ E2E_BACKEND=" local"
30+ else
31+ echo " ERROR: Unsupported BACKEND value: $BACKEND " >&2
32+ exit 1
2533fi
2634
35+ XCODE_EXTRA_ARGS+=(
36+ " E2E_BACKEND=$E2E_BACKEND "
37+ " E2E_NETWORK=$E2E_NETWORK "
38+ " SWIFT_ACTIVE_COMPILATION_CONDITIONS=\$ (inherited) E2E_BUILD"
39+ )
40+
2741xcodebuild \
2842 -project " $IOS_ROOT /Bitkit.xcodeproj" \
2943 -scheme Bitkit \
You can’t perform that action at this time.
0 commit comments