amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

Fix (Test): Fixing xcodes iOS runtime install for integration tests

Open hahnandrew opened this issue 1 year ago • 0 comments

Issue

https://github.com/XcodesOrg/xcodes/issues/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 runtime


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hahnandrew avatar Jun 25 '24 17:06 hahnandrew