From 14982a4b9a15018cdf2955f592b8973abf810e21 Mon Sep 17 00:00:00 2001 From: Jorge Palacio <91535915+jorgepalac1o@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:16:33 +0100 Subject: [PATCH] MSDK-873 Added pod repo update step (#286) * MSDK-873 Added pod repo update, before install to get the latest repo information from cocoapods * MSDK-873 Added verbose value to pod install to debug * MSDK-873 add script to update boost --------- Co-authored-by: deni zakya --- .github/workflows/native_tests.yml | 2 +- ios/Podfile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/native_tests.yml b/.github/workflows/native_tests.yml index 895865bb..b62040b9 100644 --- a/.github/workflows/native_tests.yml +++ b/.github/workflows/native_tests.yml @@ -41,7 +41,7 @@ jobs: - name: Install Lib cocoapods run: | - (cd ios;pod install) + (cd ios;pod repo update;pod install --verbose) - name: Run Unit Tests for iOS run: yarn test:ios diff --git a/ios/Podfile b/ios/Podfile index 984e05ac..17c88e91 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,3 +1,21 @@ +def find_and_replace_boost_url + pod_spec = "../node_modules/react-native/third-party-podspecs/boost.podspec" + puts "Debug: Starting boost URL replacement" + if File.exist?(pod_spec) + puts "Debug: Found boost.podspec" + spec_content = File.read(pod_spec) + spec_content.gsub!( + 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2', + 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2' + ) + File.write(pod_spec, spec_content) + puts "Debug: Updated boost.podspec" + end +end + +# Let the magic happen! +find_and_replace_boost_url + # Uncomment the next line to define a global platform for your project platform :ios, '16.0'