Skip to content

Commit 13d6960

Browse files
committed
build.sh: forward DEVELOPMENT_TEAM env to xcodebuild
1 parent aec1d11 commit 13d6960

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

execuwhisper/macos/scripts/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,23 @@ echo "--- Step 3: Building app ---"
187187
mkdir -p "${BUILD_DIR}"
188188
BUILD_LOG="${BUILD_DIR}/build.log"
189189

190+
# Forward DEVELOPMENT_TEAM through to xcodebuild as an explicit build setting
191+
# when set in the environment. Without this, the project (which intentionally
192+
# leaves DEVELOPMENT_TEAM unset in project.yml so users supply their own)
193+
# won't pick up the env var during signing.
194+
TEAM_OVERRIDE=()
195+
if [[ -n "${DEVELOPMENT_TEAM:-}" ]]; then
196+
TEAM_OVERRIDE=(DEVELOPMENT_TEAM="${DEVELOPMENT_TEAM}")
197+
fi
198+
190199
set +e
191200
BUNDLE_MODEL_ARTIFACTS=$([[ "${BUNDLE_MODELS}" == true ]] && echo 1 || echo 0) \
192201
xcodebuild \
193202
-project "${SCHEME}.xcodeproj" \
194203
-scheme "${SCHEME}" \
195204
-configuration "${CONFIG}" \
196205
-derivedDataPath "${BUILD_DIR}" \
206+
"${TEAM_OVERRIDE[@]}" \
197207
build \
198208
> "${BUILD_LOG}" 2>&1
199209
BUILD_EXIT=$?

0 commit comments

Comments
 (0)