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

[ENG-1396] change default ios image for sdk <= 41 #479

Merged
merged 2 commits into from
Jun 25, 2021

Conversation

dsokal
Copy link
Contributor

@dsokal dsokal commented Jun 25, 2021

Checklist

  • I've added an entry to CHANGELOG.md if necessary.
  • I've tagged the changelog entry with [EAS BUILD API] if it's a part of a breaking change to EAS Build API (only possible when updating @expo/eas-build-job package).

Why

https://linear.app/expo/issue/ENG-1396/make-default-image-dependent-on-sdk-version
Expo SDK 41 (and lower) projects won't build with Xcode 12.5.

How

If we detect that a project uses SDK <= 41 we use image macos-catalina-10.15-xcode-12.4.

Test Plan

  • I ran a build for an SDK 41 project without image in eas.json. I saw that macos-catalina-10.15-xcode-12.4 was used for the build.
  • I ran another build for the same project but with image set in eas.json. The image was propagated to the job object.

@linear
Copy link

linear bot commented Jun 25, 2021

ENG-1396 Make "default" image dependent on SDK version

SDK 41 projects may not build with Xcode 12.5, so we can't change the "default" from Xcode 12.4 to 12.5 or we may break their project.

This may in the future mean that you won't be able to submit your older project to the store without manually switching the image (and then figuring out how to get their project to build under the new Xcode version)

@dsokal dsokal force-pushed the @dsokal/default-ios-image branch from f7a1096 to eda339d Compare June 25, 2021 12:46
@github-actions
Copy link

github-actions bot commented Jun 25, 2021

Size Change: -395 B (0%)

Total Size: 37.6 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 37.6 MB -395 B (0%)

compressed-size-action

@dsokal dsokal force-pushed the @dsokal/default-ios-image branch from eda339d to c556053 Compare June 25, 2021 12:54
@dsokal dsokal force-pushed the @dsokal/default-ios-image branch from c556053 to 02fba5c Compare June 25, 2021 13:15
@dsokal dsokal marked this pull request as ready for review June 25, 2021 13:17
@dsokal dsokal requested a review from wkozyra95 June 25, 2021 13:17
CHANGELOG.md Outdated
@@ -6,6 +6,8 @@ This is the log of notable changes to EAS CLI and related packages.

### 🛠 Breaking changes

- Change default iOS image for projects with Expo SDK <= 41 (SDK 41 won't build with Xcode 12.5). ([#479](https://github.com/expo/eas-cli/pull/479) by [@dsokal](https://github.com/dsokal))
Copy link
Contributor

Choose a reason for hiding this comment

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

it's not breaking change because the current default is still set to macos-catalina-10.15-xcode-12.4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough

@dsokal dsokal force-pushed the @dsokal/default-ios-image branch from 02fba5c to b1a3263 Compare June 25, 2021 13:21
@dsokal dsokal merged commit 2534a46 into main Jun 25, 2021
@dsokal dsokal deleted the @dsokal/default-ios-image branch June 25, 2021 13:23
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