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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Auto-select the SDK when running smoke tests. #24

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

beekhc
Copy link
Collaborator

@beekhc beekhc commented Nov 19, 2024

Which problem is this PR solving?

Currently, our smoke tests are hard-coded to a particular SDK we know is available in circleci. But individual developers have updated Xcode and no longer have that version. So, everyone has to edit this file to make the smoke tests run. This PR changes the script to autodetect the SDK version to use.

Short description of the changes

xcodebuild -showsdks lists the SDKs. We filter for iphonesimulator, and then use an ad-hoc regex to get just the name of the SDK.

How to verify that this has the expected result

I tested it locally. If it still passes in circleci, it should be good to go.

@beekhc beekhc requested a review from a team as a code owner November 19, 2024 18:04
@beekhc beekhc changed the title Auto-select the SDK when running smoke tests. fix: Auto-select the SDK when running smoke tests. Nov 19, 2024
Copy link
Contributor

@MustafaHaddara MustafaHaddara left a comment

Choose a reason for hiding this comment

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

ship it!

Comment on lines +3 to +4
SDK=$(xcodebuild -showsdks | grep iphonesimulator | sed -e 's/^.*-sdk //')
echo "SDK: $SDK"
Copy link
Contributor

Choose a reason for hiding this comment

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

😍

@beekhc beekhc merged commit c1df1cd into main Nov 19, 2024
6 checks passed
@beekhc beekhc deleted the beeklimt.choose-sdk branch November 19, 2024 19:12
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.

2 participants