Unable to install swift-format in Xcode Cloud

here is my post clone scrip:

#!/bin/zsh

brew install swift-format

And here is the errors im getting in the Xcode Cloud logs:


Showing All Messages
cd /Volumes/workspace/repository/ci_scripts && /bin/zsh /Volumes/workspace/repository/ci_scripts/ci_post_clone.sh
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:02180ca8b8295422ae84921bcf034b7ee8ce5575488bd5e6a37a192e53cd5d34
#=#=#                                                                         
##O#-#                                                                        

###                                                                        5.5%
#####################################################                     74.3%
######################################################################## 100.0%
==> Pouring portable-ruby-3.1.4.el_capitan.bottle.tar.gz
Running `brew update --auto-update`...
To restore the stashed changes to /Users/local/Homebrew, run:
  cd /Users/local/Homebrew && git stash pop
==> Homebrew collects anonymous analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

Error: swift-format: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

If you're feeling brave, you can try to install from source with:
  brew install --build-from-source swift-format

It is expected behaviour that most formulae will fail to build from source.
It is expected behaviour that Homebrew will be buggy and slow when building from source.
Do not create any issues about failures building from source on Homebrew's GitHub repositories.
Do not create any issues building from source even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help building from source in Homebrew's discussions but are unlikely to receive a response.
If building from source fails, try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Run command: 'cd /Volumes/workspace/repository/ci_scripts && /bin/zsh /Volumes/workspace/repository/ci_scripts/ci_post_clone.sh'

==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:02180ca8b8295422ae84921bcf034b7ee8ce5575488bd5e6a37a192e53cd5d34

#=#=#                                                                         

##O#-#                                                                        



###                                                                        5.5%

#####################################################                     74.3%

######################################################################## 100.0%

==> Pouring portable-ruby-3.1.4.el_capitan.bottle.tar.gz

Running `brew update --auto-update`...

To restore the stashed changes to /Users/local/Homebrew, run:

  cd /Users/local/Homebrew && git stash pop

==> Homebrew collects anonymous analytics.

Read the analytics documentation (and how to opt-out) here:

  https://docs.brew.sh/Analytics

No analytics have been recorded yet (nor will be during this `brew` run).



==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

  https://github.com/Homebrew/brew#donations



Error: swift-format: the bottle needs the Apple Command Line Tools to be installed.

  You can install them, if desired, with:

    xcode-select --install



If you're feeling brave, you can try to install from source with:

  brew install --build-from-source swift-format



It is expected behaviour that most formulae will fail to build from source.

It is expected behaviour that Homebrew will be buggy and slow when building from source.

Do not create any issues about failures building from source on Homebrew's GitHub repositories.

Do not create any issues building from source even if you think this message is unrelated.

Any opened issues will be immediately closed without response.

Do not ask for help from Homebrew or its maintainers on social media.

You may ask for help building from source in Homebrew's discussions but are unlikely to receive a response.

If building from source fails, try to figure out the problem yourself and submit a fix as a pull request.

We will review it but may or may not accept it.

Command exited with non-zero exit-code: 1

The ci_post_clone.sh is not executable and was run using zsh (default shell on macOS). To make sure your script runs correctly, make the file executable using `chmod +x` and add an appropriate shebang line.

I feel like Xcode Cloud can't possibly be missing Xcode command line tools. I also can't imagine they forgot to run chmod +x on the default run script files

Any Ideas here?

Unable to install swift-format in Xcode Cloud
 
 
Q