{"action":"closed","issue":{"url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/issues/5","labels_url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/issues/5/comments","events_url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/issues/5/events","html_url":"https://github.com/bitrise-io/steps-cocoapods-and-repository-validator/issues/5","id":96055428,"number":5,"title":"Run `bundle install` before a `pod install` if there is a Gemfile in a project","user":{"login":"orta","id":49038,"avatar_url":"https://avatars.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/bitrise-io/steps-cocoapods-and-repository-validator/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"viktorbenei","id":430618,"avatar_url":"https://avatars.githubusercontent.com/u/430618?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorbenei","html_url":"https://github.com/viktorbenei","followers_url":"https://api.github.com/users/viktorbenei/followers","following_url":"https://api.github.com/users/viktorbenei/following{/other_user}","gists_url":"https://api.github.com/users/viktorbenei/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorbenei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorbenei/subscriptions","organizations_url":"https://api.github.com/users/viktorbenei/orgs","repos_url":"https://api.github.com/users/viktorbenei/repos","events_url":"https://api.github.com/users/viktorbenei/events{/privacy}","received_events_url":"https://api.github.com/users/viktorbenei/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-20T12:41:11Z","updated_at":"2015-07-20T13:06:17Z","closed_at":"2015-07-20T13:06:17Z","body":"Running against: [artsy/Aerodramus](https://github.com/artsy/Aerodramus)\r\n\r\n```\r\n-> $ bash /Users/vagrant/stepdir/run_pod_install.sh\r\n\r\n### Searching for podfiles and installing the found ones\r\n\r\n (i) Podfile found at: ./Example/Podfile\r\n (i) Podfile directory: ./Example\r\n\r\n ===> Pod install: ./Example/Podfile\r\n--- Config:\r\n{:podfile_path=>\"Podfile\"}\r\n-----------\r\n\r\n-> Fixing sources in Podfile\r\n\r\n (i) podfile_abs_path: /Users/vagrant/git/Example/Podfile\r\nsource: [\"source\", \"'https://github.com/CocoaPods/Specs.git'\"]\r\nexpected_uri_part: https://github.com/CocoaPods/Specs.git\r\n * [no-fix] uri (https://github.com/CocoaPods/Specs.git) should be handled by pod install, no fix required.\r\n\r\n-> Finished with source fixes.\r\n  Preparing\r\n[!] Your Podfile requires that the plugin `cocoapods-keys` be installed. Please install it and try installation again.\r\n```\r\n\r\nThe problem at it's core is that this isn't aware of CocoaPods plugins. There are two ways in which someone is using them, gemfiles and the global gems installation. In my case there is a Gemfile, so I would expect a `bundle install` first, then a `bundle exec pod install`. \r\n\r\nBut if you don't use a gem file, then you can look in the Podfile for `plugin 'cocoapods-keys', ` - you have to have the Gem installation name as the plugin name, so you can rely on looking inside the string after plugin in order to ensure it's installed."}}