Skip to content

Commit bab71cf

Browse files
fix(ci): Fix iOS builds failing Hermes cocoapods (#3592)
1 parent ae9f909 commit bab71cf

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

.github/workflows/e2e.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,17 @@ jobs:
287287
working-directory: test/react-native/versions/${{ matrix.rn-version }}/RnDiffApp
288288
run: yarn add ../../../../e2e
289289

290+
- uses: ruby/setup-ruby@v1
291+
if: ${{ matrix.platform == 'ios' }}
292+
with:
293+
working-directory: test/react-native/versions/${{ matrix.rn-version }}/RnDiffApp
294+
ruby-version: '3.3.0' # based on what is used in the sample
295+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
296+
cache-version: 1 # cache the installed gems
297+
- run: gem install cocoapods -v 1.15.2 # fixes Hermes pod install https://github.com/CocoaPods/CocoaPods/issues/12226#issuecomment-1930604302
298+
working-directory: test/react-native/versions/${{ matrix.rn-version }}/RnDiffApp
299+
if: ${{ matrix.platform == 'ios' }}
300+
290301
- name: Install App Pods
291302
if: ${{ matrix.platform == 'ios' }}
292303
working-directory: test/react-native/versions/${{ matrix.rn-version }}/RnDiffApp/ios
@@ -296,10 +307,11 @@ jobs:
296307
[[ "${{ matrix.ios-use-frameworks }}" == "dynamic" ]] && export USE_FRAMEWORKS=dynamic && export NO_FLIPPER=1
297308
[[ "${{ matrix.build-type }}" == "production" ]] && ENABLE_PROD=1 || ENABLE_PROD=0
298309
[[ "${{ matrix.rn-architecture }}" == "new" ]] && ENABLE_NEW_ARCH=1 || ENABLE_NEW_ARCH=0
310+
[[ "${{ matrix.rn-version }}" == "0.65.3" ]] && POD_INSTALL_COMMNAND="pod install" || POD_INSTALL_COMMNAND="bundle exec pod install"
299311
echo "ENABLE_PROD=$ENABLE_PROD"
300312
echo "ENABLE_NEW_ARCH=$ENABLE_NEW_ARCH"
301313
echo "USE_FRAMEWORKS=$USE_FRAMEWORKS"
302-
PRODUCTION=$ENABLE_PROD RCT_NEW_ARCH_ENABLED=$ENABLE_NEW_ARCH pod install
314+
PRODUCTION=$ENABLE_PROD RCT_NEW_ARCH_ENABLED=$ENABLE_NEW_ARCH $POD_INSTALL_COMMNAND
303315
cat Podfile.lock | grep $RN_SENTRY_POD_NAME
304316
305317
- name: Patch App RN

.github/workflows/sample-application.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
if: ${{ matrix.platform == 'ios' }}
5555
with:
5656
working-directory: samples/react-native
57-
ruby-version: '3.2.2' # based on what is used in the sample
57+
ruby-version: '3.3.0' # based on what is used in the sample
5858
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
59+
cache-version: 1 # cache the installed gems
5960

6061
- uses: actions/setup-java@v3
6162
with:
@@ -87,7 +88,7 @@ jobs:
8788
[[ "${{ matrix.rn-architecture }}" == "new" ]] && ENABLE_NEW_ARCH=1 || ENABLE_NEW_ARCH=0
8889
echo "ENABLE_PROD=$ENABLE_PROD"
8990
echo "ENABLE_NEW_ARCH=$ENABLE_NEW_ARCH"
90-
PRODUCTION=$ENABLE_PROD RCT_NEW_ARCH_ENABLED=$ENABLE_NEW_ARCH pod install
91+
PRODUCTION=$ENABLE_PROD RCT_NEW_ARCH_ENABLED=$ENABLE_NEW_ARCH bundle exec pod install
9192
cat Podfile.lock | grep $RN_SENTRY_POD_NAME
9293
9394
- name: Build Android App

samples/react-native/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22

33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4-
ruby "3.2.2"
4+
ruby "3.3.0"
55

6-
gem 'cocoapods', '~> 1.13'
6+
gem 'cocoapods', '1.15.2'
77
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

samples/react-native/Gemfile.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ GEM
88
i18n (>= 1.6, < 2)
99
minitest (>= 5.1)
1010
tzinfo (~> 2.0)
11-
addressable (2.8.5)
11+
addressable (2.8.6)
1212
public_suffix (>= 2.0.2, < 6.0)
1313
algoliasearch (1.27.5)
1414
httpclient (~> 2.8, >= 2.8.3)
1515
json (>= 1.5.1)
1616
atomos (0.1.3)
1717
claide (1.1.0)
18-
cocoapods (1.14.3)
18+
cocoapods (1.15.2)
1919
addressable (~> 2.8)
2020
claide (>= 1.0.2, < 2.0)
21-
cocoapods-core (= 1.14.3)
21+
cocoapods-core (= 1.15.2)
2222
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2323
cocoapods-downloader (>= 2.1, < 3.0)
2424
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -33,7 +33,7 @@ GEM
3333
nap (~> 1.0)
3434
ruby-macho (>= 2.3.0, < 3.0)
3535
xcodeproj (>= 1.23.0, < 2.0)
36-
cocoapods-core (1.14.3)
36+
cocoapods-core (1.15.2)
3737
activesupport (>= 5.0, < 8)
3838
addressable (~> 2.8)
3939
algoliasearch (~> 1.0)
@@ -64,7 +64,7 @@ GEM
6464
httpclient (2.8.3)
6565
i18n (1.14.1)
6666
concurrent-ruby (~> 1.0)
67-
json (2.6.3)
67+
json (2.7.1)
6868
minitest (5.20.0)
6969
molinillo (0.8.0)
7070
nanaimo (0.3.0)
@@ -77,7 +77,7 @@ GEM
7777
ethon (>= 0.9.0)
7878
tzinfo (2.0.6)
7979
concurrent-ruby (~> 1.0)
80-
xcodeproj (1.23.0)
80+
xcodeproj (1.24.0)
8181
CFPropertyList (>= 2.3.3, < 4.0)
8282
atomos (~> 0.1.3)
8383
claide (>= 1.0.2, < 2.0)
@@ -87,14 +87,15 @@ GEM
8787

8888
PLATFORMS
8989
arm64-darwin-22
90+
arm64-darwin-23
9091
x86_64-darwin-20
9192

9293
DEPENDENCIES
9394
activesupport (>= 6.1.7.3, < 7.1.0)
94-
cocoapods (~> 1.13)
95+
cocoapods (= 1.15.2)
9596

9697
RUBY VERSION
97-
ruby 3.2.2p53
98+
ruby 3.3.0p0
9899

99100
BUNDLED WITH
100101
2.4.20

0 commit comments

Comments
 (0)