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

Default Xcode will be changed to Xcode 12.0.1 on October, 20 #1712

Closed
1 task done
AlenaSviridenko opened this issue Oct 1, 2020 · 13 comments
Closed
1 task done

Default Xcode will be changed to Xcode 12.0.1 on October, 20 #1712

AlenaSviridenko opened this issue Oct 1, 2020 · 13 comments
Assignees
Labels
Announcement Area: Apple awaiting-deployment Code complete; awaiting deployment and/or deployment in progress OS: macOS

Comments

@AlenaSviridenko
Copy link
Contributor

AlenaSviridenko commented Oct 1, 2020

Breaking changes

Default Xcode version will be switched from 11.7 to 12.0.1

Target date

Deployment of these changes will be started on 20 October and will take a few days.

The motivation for the changes

We would like to provide the latest stable Xcode by default on images. Also it will mitigate compatibility issue with Xamarin.iOS 14.0.

Possible impact

If you use default Xcode version and your project is not compatible with Xcode 12.0.1, your build can be broken.
Also Xcode 12 has some known issues with Carthage: https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md

  • MacOS 10.15

Mitigation ways

Please consider switching Xcode in runtime to version that you need to build app.
The following snippet can be used to switch Xcode:

sudo xcode-select -s "/Applications/Xcode_11.7.app"
The list of all available Xcode versions can be found in [image documentation](https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode)
@AlenaSviridenko AlenaSviridenko pinned this issue Oct 1, 2020
@AlenaSviridenko AlenaSviridenko changed the title Default Xcode will be changed to Xcode 12.0 on October, 6 Default Xcode will be changed to Xcode 12.0 on October, 20 Oct 1, 2020
@miketimofeev miketimofeev self-assigned this Oct 19, 2020
@AlenaSviridenko AlenaSviridenko changed the title Default Xcode will be changed to Xcode 12.0 on October, 20 Default Xcode will be changed to Xcode 12.0.1 on October, 20 Oct 19, 2020
@miketimofeev miketimofeev reopened this Oct 23, 2020
@miketimofeev miketimofeev added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Oct 23, 2020
@DjCantor
Copy link

Hi, is it possible that not all machines have Xcode 12 installed yet? Sometimes we got a machine which runs the build job on an Xcode 11.7 and fails of course, although we have specified the path for the Xcode 12.

@maxim-lobanov
Copy link
Contributor

@DjCantor , this particular change was not deployed yet at all.
But if you switch Xcode in runtime, all machines should have Xcode 12 because this change was deployed a long time ago.
Is it possible to share a public repro?

@DjCantor
Copy link

DjCantor commented Oct 26, 2020

@maxim-lobanov thanks for the info, I tried to specify the Xcode version in our pipeline in the xcode job, by setting the path to it (as stated in the documentation). However this does not work. What do you mean by share public repro?

@maxim-lobanov
Copy link
Contributor

If it fails for you in public repository - give the link to repository.
If not - is it possible to create test public repository with workflow where this problem is reproduced and give the link.
Unfortunately, I can't reproduce it from my side.

P.S. For GitHub Actions, You can try to use setup-xcode to switch Xcode to check if it works better

@DjCantor
Copy link

DjCantor commented Oct 26, 2020

I am using it from Azure Devops. Do you know maybe where can I get support for it? It's not on a public repository. The issue is, that although I specified in our job in the Xcode5@ yaml task to use the Xcode 12 (by specifying the path), but it tries to run on a Xcode 11.7.

@maxim-lobanov
Copy link
Contributor

Okay, let's try to localize the problem.
Could you please try to add ls -la /Applications | grep "Xcode" line (bash) as a first step of your build. Then check the output for build that is trying to run on 11.7 instead of 12.0.

If output contains Xcode_12.app folder, it means Xcode 12 is presented on image and it is an issue with Azure DevOps task (should be reported in https://github.com/microsoft/azure-pipelines-tasks)
If Xcode_12.app is not presented on image, we will validate and fix it from image side.

@DjCantor
Copy link

Yes, it's an issue with the Azure Devops than, because I see all the newer Xcode versions. Thank you for your help!

@miketimofeev
Copy link
Contributor

The new image with Xcode 12.0.1 as the default one has been deployed

smlambert pushed a commit to adoptium/temurin-build that referenced this issue Oct 31, 2020
This prevents surprising build breaks caused by changing defaults.
xcode-select and the setup-xcode-version Action have no effect on
OpenJDK's configure.

Triggered by GitHub changing the default Xcode to 12 on Oct 20:
actions/runner-images#1712
@maxim-lobanov maxim-lobanov unpinned this issue Nov 1, 2020
terencehonles added a commit to terencehonles/arrow that referenced this issue Nov 3, 2020
Xcode has been changed to default to Xcode 12.0.1
(actions/runner-images#1712), but this
breaks the build. This change pins builds to Xcode 11.7 until it can be
fixed.
terencehonles added a commit to terencehonles/arrow that referenced this issue Nov 3, 2020
…t build

Xcode for GitHub actions has been changed to default to Xcode 12.0.1
(actions/runner-images#1712), but this
breaks the build. This change pins builds to Xcode 11.7 until it can be
fixed.
terencehonles added a commit to terencehonles/arrow that referenced this issue Nov 3, 2020
Xcode for GitHub actions has been changed to default to Xcode 12.0.1
(actions/runner-images#1712), but this
breaks the build. This change pins builds to Xcode 11.7 until it can be
fixed.
EwoutH added a commit to EwoutH/nl-covid19-notification-app-ios that referenced this issue Nov 9, 2020
On October 20th, 2020, the default Xcode version of GitHub Actions was switched from 11.7 to 12.0.1, breaking the CI. See actions/runner-images#1712

The macOS version is also fixed to avoid similar issues in the future (latest = 10.15 right now)
@brian-g
Copy link

brian-g commented Nov 10, 2020

My MacOS agent (Azure DevOps) still doesn't have Xcode 12 installed.

Version Build Path
11.3.1 (default) 11C505 /Applications/Xcode_11.3.1.app
11.3 11C29 /Applications/Xcode_11.3.app
11.2.1 11B500 /Applications/Xcode_11.2.1.app
11.2 11B52 /Applications/Xcode_11.2.app
11.1 11A1027 /Applications/Xcode_11.1.app
11.0 11A420a /Applications/Xcode_11.app
10.3 10G8 /Applications/Xcode_10.3.app
10.2.1 10E1001 /Applications/Xcode_10.2.1.app
10.2 10E125 /Applications/Xcode_10.2.app
10.1 10B61 /Applications/Xcode_10.1.app
10.0 10A255 /Applications/Xcode_10.app
9.4.1 9F2000 /Applications/Xcode_9.4.1.app

@maxim-lobanov
Copy link
Contributor

My MacOS agent (Azure DevOps) still doesn't have Xcode 12 installed.

Version Build Path
11.3.1 (default) 11C505 /Applications/Xcode_11.3.1.app
11.3 11C29 /Applications/Xcode_11.3.app
11.2.1 11B500 /Applications/Xcode_11.2.1.app
11.2 11B52 /Applications/Xcode_11.2.app
11.1 11A1027 /Applications/Xcode_11.1.app
11.0 11A420a /Applications/Xcode_11.app
10.3 10G8 /Applications/Xcode_10.3.app
10.2.1 10E1001 /Applications/Xcode_10.2.1.app
10.2 10E125 /Applications/Xcode_10.2.app
10.1 10B61 /Applications/Xcode_10.1.app
10.0 10A255 /Applications/Xcode_10.app
9.4.1 9F2000 /Applications/Xcode_9.4.1.app

@brian-g Based on the list of Xcode, you use MacOS 10.14.
New Xcode versions are installed only on MacOS 10.15. Please take a look at readme for details: https://github.com/actions/virtual-environments/tree/main/images/macos

@brian-g
Copy link

brian-g commented Nov 10, 2020

Thanks. After much frustration, I realized we were using the legacy Mac OS Agent rather than Azure Pipelines.

@EwoutH
Copy link
Contributor

EwoutH commented Nov 13, 2020

Now that Xcode 12.2 is being added (in #2054), can we discuss a date when it becomes the default version?

@maxim-lobanov
Copy link
Contributor

Xcode 12.2 will become default on 30 November: #2056
But I strongly suggest to not depend on default Xcode and always specify Xcode that you need to build application.
Otherwise, you might be broken in future, if not adapt your app to new Xcode quickly.

runejuhl added a commit to runejuhl/pgp-packet-library that referenced this issue Jul 14, 2022
Support for Clang 10 was removed from CI image in
actions/runner-images#1712.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Announcement Area: Apple awaiting-deployment Code complete; awaiting deployment and/or deployment in progress OS: macOS
Projects
None yet
Development

No branches or pull requests

7 participants