CocoaPods/CocoaPods · error · Informative
Currently need to specify a `cocoapods` install, you chose `
Error message
Currently need to specify a `cocoapods` install, you chose `#{name}`. What it means
Error "Currently need to specify a `cocoapods` install, you chose `#{name}`." thrown in CocoaPods/CocoaPods.
Source
Thrown at lib/cocoapods/installer/installation_options.rb:22
class Installer
# Represents the installation options the user can customize via a
# `Podfile`.
#
class InstallationOptions
# Parses installation options from a podfile.
#
# @param [Podfile] podfile the podfile to parse installation options
# from.
#
# @raise [Informative] if `podfile` does not specify a `CocoaPods`
# install.
#
# @return [Self]
#
def self.from_podfile(podfile)
name, options = podfile.installation_method
unless name.downcase == 'cocoapods'
raise Informative, "Currently need to specify a `cocoapods` install, you chose `#{name}`."
end
new(options)
end
# Defines a new installation option.
#
# @param [#to_s] name the name of the option.
#
# @param default the default value for the option.
#
# @param [Boolean] boolean whether the option has a boolean value.
#
# @return [void]
#
# @!macro [attach] option
#
# @note this option defaults to $2.
#View on GitHub (pinned to b80e113e28)
When it happens
Trigger: Thrown at lib/cocoapods/installer/installation_options.rb:22 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CocoaPods/CocoaPods@b80e113e28 (2026-08-21).
Data as JSON: /api/errors/4945e34d7962ecbf.
Report an issue: GitHub.