- Add the dependent cocoapod in the podspec file:
s.dependency 'DependentPod'
- Ensure that the dependent cocoapod is listed in the Podfile of your consuming application:
pod 'YourPod'
pod 'DependentPod'
- Install/update the pods:
pod install
- Ensure that the dependent cocoapod is successfully installed in the correct version:
pod outdated
- Test the dependent cocoapod by including and using its code in the YourPod library.