Skip to content

Instantly share code, notes, and snippets.

@bsrz
Last active May 7, 2023 02:58
Show Gist options
  • Select an option

  • Save bsrz/5c94a98efd62f4be74e06a55aa176461 to your computer and use it in GitHub Desktop.

Select an option

Save bsrz/5c94a98efd62f4be74e06a55aa176461 to your computer and use it in GitHub Desktop.
$ brew update
$ brew install asdf
source 'https://rubygems.org'
gem 'cocoapods'
$ bundle update
$ bundle update
alias be="bundle exec"
$ be pod init
$ be pod install
$ be pod update
. /opt/homebrew/opt/asdf/libexec/asdf.sh
$ ruby -v
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
$ asdf list all ruby
$ asdf install ruby 3.0.0
$ asdf list ruby # list all the installed versions
$ asdf global ruby 3.0.0
$ ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin21]
$ gem install cocoapods
Successfully installed cocoapods-1.11.2
Parsing documentation for cocoapods-1.11.2
Done installing documentation for cocoapods after 0 seconds
1 gem installed
$ pod --help
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ deintegrate Deintegrate CocoaPods from your project
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ plugins Show available CocoaPods plugins
+ repo Manage spec-repositories
+ search Search for pods
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ trunk Interact with the CocoaPods API (e.g. publishing new specs)
+ try Try a Pod!
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--allow-root Allows CocoaPods to run as root
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment