This may be a lot easier to do by importing the cocoapods-core gem and asking for the version specifically @irrationalfab