-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve flow installing CocoaPods #1819
Comments
Hi there! Doing that on Doing that from Xcode is not possible. Installing pods when pressing
Seeing the Xcode window getting close could push the users to think that something went wrong or that the play button make Xcode crash, so I'd avoid that.
Can't we run |
+1 on everything @cipolleschi said above. You could move
I would not depend on |
This has to be conditional (e.g. CLI stores some metadata and only runs There could be a config option/parameter to skip installing pods for projects that never want to install pods automatically.
One option could be to prompt in interactive mode if the user wants to install pods (with a timeout in case they switch to another app) if CLI detects any changes. |
I did a small research on the topic and as it turns out the Expo basically checks for Pods folder in the project and the lockfile and if any is not present then it installs pods. It also caches hashes of We could implement this similarily on our end however I'm not sure if moving pod installation from init to build-ios/run-ios is an optimal idea, because since it rarely changes after initial setup it would be redundant to try and install them on each subsequent run/build (esp. if there are more robustly configured Podfiles). It might simply be more efficient to just check for changes and let the user know if there were any or ask interactively. We could cache hashes of dependencies, devDependencies and the podfile hash. A param for skipping pod installation during init, otoh, might be a good idea. WDYT? |
On a second thought, I'm not sure that it is good, not to install pods at If we don't do that, users can't open the project in Xcode (as there is no properly configured WDYT? |
We already have that param! :D you can run |
Yeah I feel that automatically running pods when needed is useful, but don't see any advantage of not running on init. If we have some change detection then it'll be skipped during the build anyway if it was run during init. |
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
I'm closing this issue, as it was implemented in #2077 🎉 |
Describe the Feature
While creating a new project with
react-native init
, we're automatically installing pods, (and sometimes it can cause errors, and non-advanced users creates issues thatinit
command doesn't work, which isn't actually true),Solution
We want to move part with installing pods to moment, when user runs app part via (
run-ios
/build-ios
/ or by pressing "Play" button in Xcode), then we'll check if user installed pods or not. If not we'll prompt user to install pods.Also we would like to check if dependencies changed in
package.json
, if yes - we'll prompt user to run pod install, before starting the build.The text was updated successfully, but these errors were encountered: