Skip to content

Commit 5217411

Browse files
Archish27satya164
andauthored
chore: use pod install instead of pod-install (#520)
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary <!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? --> Pod-install is not adding appropriate node version cause build to break in ci. `yarn pod-install` adds `.xcode.env.local` as `export NODE_BINARY=/private/var/folders/pw/n0k7yhwx5lx99s1bswyxq1tc0000gp/T/xfs-713c155c/node` Whereas `pod install` seems to be working fine. ### Test plan <!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. --> --------- Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent 3621257 commit 5217411

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.github/workflows/build-templates.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ jobs:
250250
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
251251
working-directory: ${{ env.work_dir }}
252252
run: |
253-
yarn pod-install example/ios
253+
cd example/ios
254+
pod install
254255
env:
255256
NO_FLIPPER: 1
256257

packages/create-react-native-library/src/utils/generateExampleApp.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ const PACKAGES_TO_ADD_WEB_DEV = {
4747
'babel-loader': '^8.1.0',
4848
};
4949

50-
const PACKAGES_TO_ADD_NATIVE_DEV = {
51-
'pod-install': '^0.1.0',
52-
};
53-
5450
export default async function generateExampleApp({
5551
type,
5652
dest,
@@ -164,8 +160,6 @@ export default async function generateExampleApp({
164160
});
165161

166162
scripts.web = 'expo start --web';
167-
} else {
168-
Object.assign(devDependencies, PACKAGES_TO_ADD_NATIVE_DEV);
169163
}
170164

171165
await fs.writeJSON(path.join(directory, 'package.json'), pkg, {

packages/create-react-native-library/templates/common/$.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ jobs:
145145
- name: Install cocoapods
146146
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
147147
run: |
148-
yarn pod-install example/ios
148+
cd example/ios
149+
pod install
149150
env:
150151
NO_FLIPPER: 1
151152

packages/create-react-native-library/templates/common/$package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@
7272
"eslint-config-prettier": "^8.5.0",
7373
"eslint-plugin-prettier": "^4.0.0",
7474
"jest": "^28.1.1",
75-
<% if (example === 'native') { -%>
76-
"pod-install": "^0.1.0",
77-
<% } -%>
7875
"prettier": "^2.0.5",
7976
"react": "17.0.2",
8077
"react-native": "0.70.0",

packages/create-react-native-library/templates/common/CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ By default, the example is configured to build with the old architecture. To run
6161
2. For iOS, run:
6262

6363
```sh
64-
RCT_NEW_ARCH_ENABLED=1 yarn pod-install example/ios
64+
cd example/ios
65+
RCT_NEW_ARCH_ENABLED=1 pod install
66+
cd -
6567
yarn example ios
6668
```
6769

0 commit comments

Comments
 (0)