Repository navigation
ci: select Xcode by version through DEVELOPER_DIR - #3545
Merged
Merged
Conversation
…per-dir # Conflicts: # .github/workflows/ios-tests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
setup-xcoderansudo xcode-select --switch /Applications/Xcode_27.1.app, which needs sudo, changes the machine's Xcode, and names a path only thexcode-27image has; the self-hosted Mac has 27.1 at/Applications/Xcode.app.require-releasealso rejected the image's 27.1 by its folder name,Xcode_27.1_Release_Candidate.app, though it holds 27A9275, the build developer.apple.com/news/releases lists as Xcode 27.1. v0.82.0 would fail inapp.Change
/Applications/Xcode*.appwhoseversion.plistsays 27.1, as maxim-lobanov/setup-xcode does, fails on none or several, and exportsDEVELOPER_DIR(man xcode-select).require-releaseneeds build 27A9275 andlicenseTypeGM. The license alone cannot tell: the 27.1 beta, 27A9269, also says GM.DEVELOPER_DIRto the test host, which gets no shell environment. Without it,/usr/bin/python3inRemoteSQLiteAgentPipeTestsresolved through the image's selected 27.0 and asked to install the Command Line Tools.xcodebuild -downloadPlatform iOSwithoutsudo, which dropsDEVELOPER_DIR, as Apple's docs and the image's installer run it.Verified
The iOS job here logs
Xcode_27.1_Release_Candidate.app: build 27A9275, licenseType GM, whichrequire-releaseaccepts. Locally and on a mock image layout the step refuses 27A9269 and a 27.2 beta for a release and fails on zero or two 27.1 bundles. A probe project shows the plan entry reaches the host.apple-signingneeds no change: OpenSSL 4.0.3 prints the same-enddateand-checkendcodes as 3.6.5.