Skip to content

Commit

Permalink
MSDK-873 Added pod repo update step (#286)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
jorgepalac1o and denizak authored Feb 6, 2025
1 parent 611323c commit 14982a4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/native_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit 14982a4

Please sign in to comment.