Skip to content

Commit

Permalink
US1782181: patch Boost pod.spec while issue is being fixed
Browse files Browse the repository at this point in the history
- See Boost issue - boostorg/boost#843
- See temporary workaround proposed by Facebook - facebook/react-native#42180
  • Loading branch information
Olivier Chalet authored and abaeza-wp committed Jan 22, 2024
1 parent 87789e0 commit b377e1e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo-app/bitrise.yml
Expand Up @@ -79,6 +79,11 @@ workflows:
inputs:
- command: ls
- workdir: $BITRISE_SOURCE_DIR/demo-app/
- script@1.2:
title: "Patch Boost podspec"
inputs:
- working_dir: $BITRISE_SOURCE_DIR/demo-app/
- content: ./scripts/ci/patch-boost-podspec.sh
- cocoapods-install@2:
title: "Install pods for iOS Bridge SDK"
inputs:
Expand Down
12 changes: 12 additions & 0 deletions demo-app/scripts/ci/patch-boost-podspec.sh
@@ -0,0 +1,12 @@
#!/bin/bash

# This script is used to patch an issue during the installation of the Boost pod dependency
# See Boost issue - https://github.com/boostorg/boost/issues/843
# Temporary workaround proposed by Facebook - https://github.com/facebook/react-native/issues/42180

# replacing https://boostorg.jfrog.io/artifactory/main by https://archives.boost.io
# and creating temp file
cat ./node_modules/react-native/third-party-podspecs/boost.podspec | sed s/boostorg.jfrog.io\\/artifactory\\/main/archives.boost.io/ > node_modules/react-native/third-party-podspecs/temp

# overwrite boost.podspec file
mv node_modules/react-native/third-party-podspecs/temp node_modules/react-native/third-party-podspecs/boost.podspec

0 comments on commit b377e1e

Please sign in to comment.