Skip to content

Fail closed in make-xcframeworks.sh - #2736

Open
TastyHeadphones wants to merge 1 commit into
ReactiveX:mainfrom
TastyHeadphones:fix/xcframework-script-fail-closed
Open

TastyHeadphones wants to merge 1 commit into
ReactiveX:mainfrom
TastyHeadphones:fix/xcframework-script-fail-closed

Conversation

@TastyHeadphones

Copy link
Copy Markdown

make-xcframeworks.sh could exit 0 and ship a zip of stale *.xcframework dirs even when every xcodebuild/codesign call failed — the pipe to xcbeautify hid the status, and old output dirs were never cleared.

Changes:

  • set -euo pipefail
  • delete previous *.xcframework dirs and the zip before building
  • bail if an xcframework wasn't created before codesign/zip

Fixes #2733

The release script ignored xcodebuild/codesign failures (piped without
pipefail) and left stale *.xcframework dirs in place, so a failed run
could still zip old frameworks and exit 0.

Enable pipefail, clear previous outputs up front, and require each
xcframework to exist before signing/zipping.

Fixes ReactiveX#2733
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make-xcframeworks.sh succeeds with stale outputs after build and signing failures

1 participant