Skip to main content
All CollectionsKnowledge BaseiOS
Local Mirrors of CocoaPods and Homebrew failed to find a dependency
Local Mirrors of CocoaPods and Homebrew failed to find a dependency
Updated over a week ago

Issue

Either Homebrew or CocoaPods can occasionally return an error when trying to find a certain dependency after a recent update of a Bitrise stack. For example, CocoaPods might throw the CocoaPods could not find compatible versions for pod X error.

Possible solutions

This can happen if the stack does not yet have the latest version of the dependency manager you are trying to use. Update the dependency manager to the latest version.

For CocoaPods:

pod repo update

For Homebrew:

cd "$(brew --repository)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.gitcd "$(brew --repository)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://github.com/Homebrew/homebrew-cask.gitbrew update

If you are unsure about when was the dependency manager last updated on our stacks, you can check it:

cd ~/.cocoapods/repos/master
git log -1 origin/mastercd "$(brew --repository)/Library/Taps/homebrew/homebrew-core"
git log -1 origin/master
Did this answer your question?