-
Notifications
You must be signed in to change notification settings - Fork 118
[Tooling] Update Xcode version refs in tooling scripts #8033
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
~> 14.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The file we had before was |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -444,8 +444,11 @@ platform :ios do | |
lane :build_and_upload_itc do |options| | ||
ensure_sentry_installed | ||
|
||
ios_build_prechecks(skip_confirm: options[:skip_confirm], external: true) unless options[:skip_prechecks] | ||
ios_build_preflight unless options[:skip_prechecks] | ||
unless options[:skip_prechecks] | ||
ios_build_prechecks(skip_confirm: options[:skip_confirm], external: true) | ||
ios_build_preflight | ||
xcversion() # Ensure we're using the right version of Xcode, defined in `.xcode-version` file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick. Have you considered wrapping There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: I accidentally landed on this document that mentions Might be worth looking into before merging, or as an update followup. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'd be happy to look into it if your plate's full. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh TIL this was deprecated. Yeah I'd love if you can take a look at migrating the command to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mokagio Seems latest fastlane shipped with official new usage of |
||
end | ||
|
||
appstore_code_signing | ||
|
||
|
@@ -501,6 +504,7 @@ platform :ios do | |
desc 'Builds and uploads an installable build' | ||
lane :build_and_upload_installable_build do | ||
ensure_sentry_installed | ||
xcversion() # Ensure we're using the right version of Xcode, defined in `.xcode-version` file | ||
|
||
alpha_code_signing | ||
|
||
|
@@ -577,6 +581,8 @@ platform :ios do | |
##################################################################################### | ||
desc 'Build for Testing' | ||
lane :build_for_testing do |options| | ||
xcversion() # Ensure we're using the right version of Xcode, defined in `.xcode-version` file | ||
|
||
run_tests( | ||
workspace: 'WooCommerce.xcworkspace', | ||
scheme: TEST_SCHEME, | ||
|
@@ -649,8 +655,8 @@ platform :ios do | |
# Ensure we're using the latest Pods | ||
sh('bundle exec pod install --verbose') | ||
|
||
# Ensure we're using the right version of Xcode | ||
xcversion(version: '~> 13.4') | ||
# Ensure we're using the right version of Xcode, defined in `.xcode-version` file | ||
xcversion() | ||
|
||
scan( | ||
workspace: 'WooCommerce.xcworkspace', | ||
|
@@ -662,8 +668,8 @@ platform :ios do | |
|
||
desc 'Take Screenshots' | ||
lane :take_screenshots do |options| | ||
# Ensure we're using the right version of Xcode | ||
xcversion(version: '~> 13.4') | ||
# Ensure we're using the right version of Xcode, defined in `.xcode-version` file | ||
xcversion() | ||
|
||
# By default, clear previous screenshots | ||
languages = IOS_LOCALES | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition 👍
In the past, I used dynamic pipelines, where instead of having an hardcoded YAML pipeline we'd run a script that generated the YAML at runtime. In that setup, we could read
.xcode-version
and generate theIMAGE_ID
name based on it.But, dynamic pipelines are harder to read, might have bugs in the generation logic, and we don't change Xcode versions that fast to justify the investment and tradeoff at this point in time.