Xcode cloud builds are failing

Hello There,

From some days our Xcode Cloud builds were failing even though I didn't made any changes to the workflow configurations or either in ci_post_clone script. we are using a react-native app for our applications and you can find the post_clone script as follows. Please help me resolve this issue, thanks in advance.

The post_clone script:


# Install CocoaPods and yarn using Homebrew.
brew install cocoapods
brew install node@16
brew link node@16
brew install yarn

# Install dependencies
yarn
pod install

Additional information:

The Xcode and the Mac OS versions are set to latest version.

Answered by riderx in 725753022

i got your issue too, there is mine who work now

#!/usr/bin/env bash

set -x

export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew install cocoapods

# have to add node yourself
NODE_VER=16
VERSION=$(curl -s https://nodejs.org/dist/latest-v$NODE_VER.x/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')
if [[ "$(arch)" == "arm64" ]]
then
  ARCH="arm64"
else
  ARCH="x64"
fi

curl "https://nodejs.org/dist/latest-v$NODE_VER.x/node-$VERSION-darwin-$ARCH.tar.gz" -o $HOME/Downloads/node.tar.gz
tar -xf "$HOME/Downloads/node.tar.gz"
NODE_PATH="$PWD/node-$VERSION-darwin-$ARCH/bin"
PATH+=":$NODE_PATH"
export PATH
node -v
npm -v

brew install yarn

# Install dependencies
yarn --frozen-lockfile
pod install
Accepted Answer

i got your issue too, there is mine who work now

#!/usr/bin/env bash

set -x

export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew install cocoapods

# have to add node yourself
NODE_VER=16
VERSION=$(curl -s https://nodejs.org/dist/latest-v$NODE_VER.x/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')
if [[ "$(arch)" == "arm64" ]]
then
  ARCH="arm64"
else
  ARCH="x64"
fi

curl "https://nodejs.org/dist/latest-v$NODE_VER.x/node-$VERSION-darwin-$ARCH.tar.gz" -o $HOME/Downloads/node.tar.gz
tar -xf "$HOME/Downloads/node.tar.gz"
NODE_PATH="$PWD/node-$VERSION-darwin-$ARCH/bin"
PATH+=":$NODE_PATH"
export PATH
node -v
npm -v

brew install yarn

# Install dependencies
yarn --frozen-lockfile
pod install
Xcode cloud builds are failing
 
 
Q