Fix (Test): Fixing xcodes iOS runtime install for integration tests #5068
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.
Issue
XcodesOrg/xcodes#368
Background:
We use
xcodes runtimes install ...
to install our ios runtimes for our ios simulator in our CI testing in the Github Actions Node.js modules.xcodes is a third party homebrew package that allows users to manage and download ios versions, powered by the API apple offers. The Apple API has released a breaking change that affects our ability to download a particular iOS runtime. This API seems to be depreciating in newer versions and is inconsistent per version release. This break isn't new, as many have reported that the runtimes download endpoints sometimes work, and sometimes don't. as a fix, there was a third party fork (see here) where i was able to test the runtime download command. many others are facing issues in their production systems as well and report this fork as a successful fix at this time. however, this is a workaround, and the maintainer has expressed that he intends to fix this issue.
Description of changes:
I changed the brew install location (see full fix described here) from xcodesorg/made/xcodes to phantomato/patched/xcodes as an immediate fix and interim as we decide on next steps
alternatively, since we always test on latest, we can implement the change described here and use the
xcodebuild
tool to download the ios runtimeBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.