From 1267b0c0f4f25bdcc48299b8d967ef506426aa66 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 10 Oct 2022 21:16:32 +0200 Subject: [PATCH] fix broken objc test jobs (#31304) --- tools/internal_ci/helper_scripts/prepare_build_macos_rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index 8f446167d5c..971beb9202c 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -98,7 +98,8 @@ if [ "${PREPARE_BUILD_INSTALL_DEPS_OBJC}" == "true" ] then # cocoapods export LANG=en_US.UTF-8 - time gem install cocoapods --version 1.7.2 --no-document --user-install + # use "sudo" to avoid permission error on kokoro monterey image + time sudo gem install cocoapods --version 1.7.2 --no-document --user-install # pre-fetch cocoapods master repo's most recent commit only mkdir -p ~/.cocoapods/repos time git clone --depth 1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master