diff --git a/native_gg/ios/Podfile.lock b/native_gg/ios/Podfile.lock index 2c9fd7cb9..6a6d60493 100644 --- a/native_gg/ios/Podfile.lock +++ b/native_gg/ios/Podfile.lock @@ -1695,4 +1695,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: df844b7036fc0e3e827120adde6ebcdf91e3fb07 -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 diff --git a/native_gg/ios/ci_scripts/ci_post_clone.sh b/native_gg/ios/ci_scripts/ci_post_clone.sh index 0b09213a9..b841869a4 100755 --- a/native_gg/ios/ci_scripts/ci_post_clone.sh +++ b/native_gg/ios/ci_scripts/ci_post_clone.sh @@ -9,45 +9,38 @@ set -x arch node_version=20.11.0 -# if [ "$ARCHITECTURE" == "arm64" ]; then -# # For arm64 architecture (Apple Silicon) -# arch=arm64 -# else -# # For x86 architecture -# arch=x64 -# fi - -# # Echo for debugging logs purposes -# echo $HOME -# echo "============> Installing Node <============" - -# # Download and install node -# curl "https://nodejs.org/dist/v$node_version/node-v$node_version-darwin-$arch.tar.gz" -o $HOME/Downloads/node.tar.gz -# cd /Volumes/workspace/ -# tar -xf "$HOME/Downloads/node.tar.gz" -# NODE_PATH="$PWD/node-v$node_version-darwin-$arch/bin" -# echo $NODE_PATH -# PATH+=":$NODE_PATH" -# export PATH - -# # Check node and npm version -# node -v -# npm -v - -# # Install cocoapods. -# echo "============> Installing cocoapods <============" -# # Temp hack to work around brew only installing the latest cocoapods version that is broken. -# export HOMEBREW_NO_INSTALL_CLEANUP=TRUE -# export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE - - -# curl https://raw.githubusercontent.com/Homebrew/homebrew-core/1364b74ebeedb2eab300d62c99e12f2a6f344277/Formula/c/cocoapods.rb > cocoapods.rb -# brew install cocoapods.rb - -# # Install yarn -# npm install -g pnpm@8.15.1 -# pnpm -v - +if [ "$ARCHITECTURE" == "arm64" ]; then + # For arm64 architecture (Apple Silicon) + arch=arm64 +else + # For x86 architecture + arch=x64 +fi + +# Echo for debugging logs purposes +echo $HOME +echo "============> Installing Node <============" + +# Download and install node +curl "https://nodejs.org/dist/v$node_version/node-v$node_version-darwin-$arch.tar.gz" -o $HOME/Downloads/node.tar.gz +cd /Volumes/workspace/ +tar -xf "$HOME/Downloads/node.tar.gz" +NODE_PATH="$PWD/node-v$node_version-darwin-$arch/bin" +echo $NODE_PATH +PATH+=":$NODE_PATH" +export PATH + +# Check node and npm version +node -v +npm -v + +# Install cocoapods. +echo "============> Installing cocoapods <============" +brew install cocoapods + +# Install yarn +npm install -g pnpm@8.15.1 +pnpm -v # move to the react native project. @@ -58,16 +51,14 @@ pwd # Add the .env file echo "Adding .env file" -echo -n $CLIENT_SECRETS > .env -ls -a -cat .env +echo $CLIENT_SECRETS > .env -# # Install npm dependencies. -# echo "=> Install npm dependencies" -# # Workaround for Xcode Cloud issue https://forums.developer.apple.com/forums/thread/738136 -# pnpm install --frozen-lockfile +# Install npm dependencies. +echo "=> Install npm dependencies" +# Workaround for Xcode Cloud issue https://forums.developer.apple.com/forums/thread/738136 +pnpm install --frozen-lockfile -# # Install all pod dependencies. -# echo "=> Install pods" -# cd ios && pwd && pod install +# Install all pod dependencies. +echo "=> Install pods" +cd ios && pwd && pod install