Skip to content

Commit

Permalink
feat: use npx pod-install #RFC (#11473)
Browse files Browse the repository at this point in the history
* feat: use npx pod-install

* chore: add pod-install to dev deps
  • Loading branch information
MounirDhahri authored Feb 5, 2025
1 parent 07df355 commit 0a5f7e4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ commands:
- v29-pods-{{ checksum ".manifests/cocoapods" }}
- run:
name: Install Pods
command: cd ios; bundle exec pod check --ignore-dev-pods || bundle exec pod install; cd ..;
command: cd ios; bundle exec pod check --ignore-dev-pods || bundle exec npx pod-install; cd ..;
- save_cache:
key: v29-pods-{{ checksum ".manifests/cocoapods" }}
paths:
Expand Down
2 changes: 1 addition & 1 deletion docs/setting_up_eigen_after_long_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You might encounter some Pod errors, i.e.:
in that case, you can try to run the following commands:

```sh
cd ios && bundle exec pod repo update && bundle exec pod install
cd ios && bundle exec npx pod-install
```

This will update the stale pods on your local environment.
Expand Down
1 change: 0 additions & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ If things are not going right some of the things you can try are
- `yarn setup:artsy`
- `yarn install:all`
- `yarn relay`
- `yarn pod-install-repo-update`
- `open ios/Artsy.xcworkspace` -> Product -> Clean Build Folder (shift + command + K) **then** build the app again
- `yarn doctor`

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"open-sim": "open -a Simulator",
"open-url": "npx uri-scheme open",
"open-xcode": "open ios/Artsy.xcworkspace",
"pod-install": "cd ios; bundle exec pod install; cd ..; ./scripts/setup/post-pod-install.rb",
"pod-install-repo-update": "cd ios; bundle exec pod install --repo-update; cd ..; ./scripts/setup/post-pod-install.rb",
"pod-install": "cd ios; bundle exec npx pod-install; cd ..; ./scripts/setup/post-pod-install.rb",
"postinstall": "react-native setup-ios-permissions; yarn init-metaflags; prettier --write package.json; ./scripts/setup/update-echo",
"prepare": "patch-package && husky install",
"prettier-project": "yarn run prettier-write 'src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -298,6 +297,7 @@
"lint-staged": "13.2.3",
"ora": "5.4.0",
"patch-package": "6.4.7",
"pod-install": "0.3.4",
"postinstall-prepare": "1.0.1",
"prettier": "3.1.1",
"prompt-sync": "4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const checkPodDependenciesAreUpToDate = async () => {
} else {
NO(
`Your ${r`pod dependencies`} are out of sync.`,
`Run ${g`bundle exec pod install`} in the iOS directory.`
`Run ${g`bundle exec npx pod-install`} in the iOS directory.`
)
}
}
Expand All @@ -205,7 +205,7 @@ const checkPodDependenciesAreUpToDate = async () => {
} else {
NO(
`Your ${r`pod dependencies`} are out of sync.`,
`Run ${g`bundle exec pod install`} in the iOS directory.`
`Run ${g`bundle exec npx pod-install`} in the iOS directory.`
)
}
} catch (error) {
Expand Down
2 changes: 0 additions & 2 deletions scripts/utils/flip-table
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ echo 'Reinstall dependencies ┬─┬ノ( º _ ºノ)'
yarn install:all

./scripts/setup/update-echo

yarn pod-install-repo-update
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12740,6 +12740,11 @@ plist@^3.0.4:
base64-js "^1.5.1"
xmlbuilder "^15.1.1"

[email protected]:
version "0.3.4"
resolved "https://registry.yarnpkg.com/pod-install/-/pod-install-0.3.4.tgz#8d6ad22a3e42d8014ee0363378d4bd782b8152d5"
integrity sha512-I6ObV36HNvbM5/QI8IEZ61ot41p8eBB9Zm0Bc9Sw99v9JzdNvwxg6IS2ZbZbJ0KvLWnUCIL1mIiFhJTLVF5r1w==

[email protected]:
version "11.0.3"
resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-11.0.3.tgz#565c5f6590bbcddab7a33a074bb2ba97e24b0cc9"
Expand Down

0 comments on commit 0a5f7e4

Please sign in to comment.