Skip to content

Commit c614aa0

Browse files
authored
ci(ios): switch to iOS nightlies [skip ci] (#1196)
1 parent 3887730 commit c614aa0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,7 @@ jobs:
137137
- name: Set up react-native@nightly
138138
if: ${{ github.event_name == 'schedule' }}
139139
run: |
140-
# `nightly` currently doesn't build due to use of version numbers that
141-
# are incompatible with CocoaPods. See
142-
# https://github.com/facebook/react-native/issues/30036 and
143-
# https://github.com/microsoft/react-native-macos/issues/620 for more
144-
# details.
145-
npm run set-react-version -- main
140+
npm run set-react-version -- nightly
146141
rm example/ios/Podfile.lock
147142
- name: Install npm dependencies
148143
uses: ./.github/actions/yarn

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.gradle/
77
.idea/
88
.vs/
9+
.xcode.env
910
Pods/
1011
build/
1112
dist/

ios/test_app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ def make_project!(xcodeproj, project_root, target_platform, options)
268268
end
269269

270270
# Note the location of Node so we can use it later in script phases
271+
File.open(File.join(project_root, '.xcode.env'), 'w') do |f|
272+
node_bin = `which node`
273+
node_bin.strip!
274+
f.write("export NODE_BINARY=#{node_bin}\n")
275+
end
271276
File.open(File.join(destination, '.env'), 'w') do |f|
272277
node_bin = `dirname $(which node)`
273278
node_bin.strip!

0 commit comments

Comments
 (0)