Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUMM-2256 Fix Mac Catalyst compatibility in 1.11.0 #894

Merged

Conversation

ncreated
Copy link
Collaborator

@ncreated ncreated commented Jun 15, 2022

What and why?

馃悶 Solves #892 revealing Mac Catalyst compatibility broken in 1.11.0.

It was broken incidentally in #764 and because we lost observability on it in smoke tests, the problem was not alerted.

How?

First, I fixed the Mac Catalyst compatibility smoke test in bitrise.yml. This test started failing silently (we don't know when). Because it was based on 3rd-party cbf1/bitrise-step-xcodebuild instead of tracing the problem, I replace it with plain 1st-party script. We now run xcodebuild directly with -euxo pipefail flags to fail the job on any issues.

Second, I fixed the actual implementation by bringing back #if targetEnvironment(macCatalyst) checks incidentally removed in #764.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

Appears that `https://github.com/cbf1/bitrise-step-xcodebuild` no longer supports
recent version(s) of `xcodebuild` and it errors silently on failing to interpret
the `-destination` flag. I'm replacing it with plain `script` step as we're not
really interested in getting more from this step than sanity check (build). It also
means no dependency on 3rd party CI step (`cbf1/bitrise-step-xcodebuild`).
@ncreated ncreated marked this pull request as ready for review June 15, 2022 16:59
@ncreated ncreated requested a review from a team as a code owner June 15, 2022 16:59
Copy link
Member

@maxep maxep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憣

@ncreated ncreated merged commit 58a4e5a into hotfix/1.11.1 Jun 20, 2022
@ncreated ncreated deleted the ncreated/RUMM-2256-fix-mac-catalyst-compatibility branch June 20, 2022 07:44
@ncreated ncreated mentioned this pull request Jun 20, 2022
6 tasks
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.

None yet

2 participants