The following will execute pod install between checkouts. This is particularly useful for projects where the Pods directory is not checked in.
- Navigate to your project on terminal.
- Open .git/hooks/post-checkout with your favourite text editor.
- Copy and paste the following script:
#!/bin/sh
if [ -r Podfile ] ; then
pod install
fi
- Set permissions for the post-checkout directory:
[sudo] chmod +x .git/hooks/post-checkout
Cocoapods will now install from the podfile between checkouts.