File tree Expand file tree Collapse file tree
execuwhisper/macos/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,13 +187,23 @@ echo "--- Step 3: Building app ---"
187187mkdir -p " ${BUILD_DIR} "
188188BUILD_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+
190199set +e
191200BUNDLE_MODEL_ARTIFACTS=$( [[ " ${BUNDLE_MODELS} " == true ]] && echo 1 || echo 0) \
192201xcodebuild \
193202 -project " ${SCHEME} .xcodeproj" \
194203 -scheme " ${SCHEME} " \
195204 -configuration " ${CONFIG} " \
196205 -derivedDataPath " ${BUILD_DIR} " \
206+ " ${TEAM_OVERRIDE[@]} " \
197207 build \
198208 > " ${BUILD_LOG} " 2>&1
199209BUILD_EXIT=$?
You can’t perform that action at this time.
0 commit comments