xcode -pod-commandline-2

3.Browse

pod search

pod list

pod try

3.1pod search

Available since v0.0.2.

 

pod search QUERY

 

Searches for pods, ignoring case, whose name, summary, description, or authors match QUERY. If the--simple option is specified, this will only search in the names of the pods.

 

Options:

--regex

Interpret the QUERY as a regular expression.

--simple

Search only by name.

--stats

Show additional stats (like GitHub watchers and forks).

--web

Searches on cocoapods.org.

--ios

Restricts the search to Pods supported on iOS.

--osx

Restricts the search to Pods supported on macOS.

--watchos

Restricts the search to Pods supported on watchOS.

--tvos

Restricts the search to Pods supported on tvOS.

--no-pager

Do not pipe search results into a pager.

 

 

3.2pod list

pod list 

 

Lists all available pods.

 

Options:

--update

Run pod repo update before listing.

--stats

Show additional stats (like GitHub watchers and forks).

 

3.3pod try

Available since v0.29.0.

 

pod try NAME|URL

 

Downloads the Pod with the given NAME (or Git URL), install its dependencies if needed and opens its demo project. If a Git URL is provided the head of the repo is used.

If a Git URL is specified, then a --podspec_name can be provided, if the podspec name is different than the git repo for some reason.

 

Options:

--podspec_name=[name]

The name of the podspec file within the Git Repository.

--no-repo-update

Skip running pod repo update before install.

4 Specifications

pod spec create

pod spec lint

pod spec cat

pod spec which

pod spec edit

4.1 pod spec create

 

pod spec create [NAME|https://github.com/USER/REPO]

 

Creates a PodSpec, in the current working dir, called NAME.podspec. If a GitHub url is passed the spec is prepopulated.

 

 


4.2 pod spec lint

 

pod spec lint [NAME.podspec|DIRECTORY|http://PATH/NAME.podspec ...]

 

Validates NAME.podspec. If a DIRECTORY is provided, it validates the podspec files found, including subfolders. In case the argument is omitted, it defaults to the current working dir.

 

Options:

--quick

Lint skips checks that would require to download and build the spec.

--allow-warnings

Lint validates even if warnings are present.

--subspec=NAME

Lint validates only the given subspec.

--no-subspecs

Lint skips validation of subspecs.

--no-clean

Lint leaves the build directory intact for inspection.

--fail-fast

Lint stops on the first failing platform or subspec.

--use-libraries

Lint uses static libraries to install the spec.

--use-modular-headers

Lint uses modular headers during installation.

--sources=https://github.com/artsy/Specs,master

The sources from which to pull dependent pods (defaults to https://github.com/CocoaPods/Specs.git). Multiple sources must be comma-delimited..

--platforms=ios,macos

Lint against specific platforms(defaults to all platforms supported by the podspec).Multiple platforms must be comma-delimited.

--private

Lint skips checks that apply only to public specs.

--swift-version=VERSION

The SWIFT_VERSION that should be used to lint the spec. This takes precedence over a .swift-version file..

--skip-import-validation

Lint skips validating that the pod can be imported.

--skip-tests

Lint skips building and running tests during validation.

4.3 pod spec cat

 

pod spec cat [QUERY]

 

Prints the content of the podspec(s) whose name matches QUERY to standard output.

 

Options:

--regex

Interpret the QUERY as a regular expression.

--show-all

Pick from all versions of the given podspec.

 

4.4pod spec which

 

pod spec which [QUERY]

 

Prints the path of the .podspec file(s) whose name matches QUERY

 

Options:

--regex

Interpret the QUERY as a regular expression.

--show-all

Print all versions of the given podspec.

 

4.5 pod spec edit

 

pod spec edit [QUERY]

 

Opens the podspec matching QUERY to be edited.

 

Options:

--regex

Interpret the QUERY as a regular expression.

--show-all

Pick from all versions of the given podspec.

 

5. Trunk

pod trunk add-owner

pod trunk info

pod trunk me

pod trunk push

pod trunk register

pod trunk remove-owner

pod trunk deprecate

pod trunk delete

 

 

5.1 pod repo add

 

pod repo add NAME URL [BRANCH]

 

Clones URL in the local spec-repos directory at /home/travis/.cocoapods/repos. The remote can later be referred to by NAME.

 

Options:

--progress

Show the progress of cloning the spec repository.

 

5.2 pod repo update

 

pod repo update [NAME]

 

Updates the local clone of the spec-repo NAME. If NAME is omitted this will update all spec-repos in /home/travis/.cocoapods/repos.

5.3 pod repo lint

 

pod repo lint [NAME|DIRECTORY]

 

Lints the spec-repo NAME. If a directory is provided it is assumed to be the root of a repo. Finally, if NAME is not provided this will lint all the spec-repos known to CocoaPods.

 

Options:

--only-errors

Lint presents only the errors.

 

5.4 pod repo list

 

pod repo list 

 

List the repos from the local spec-repos directory at /home/travis/.cocoapods/repos.

 

Options:

--count-only

Show the total number of repos.

 

5.5 pod repo remove

 

pod repo remove NAME

 

Deletes the remote named NAME from the local spec-repos directory at /home/travis/.cocoapods/repos.

 

5.5 pod repo push

 

pod repo push REPO [NAME.podspec]

 

Validates NAME.podspec or *.podspec in the current working dir, creates a directory and version folder for the pod in the local copy of REPO (/home/travis/.cocoapods/repos/[REPO]), copies the podspec file into the version directory, and finally it pushes REPO to its remote.

 

Options:

--allow-warnings

Allows pushing even if there are warnings.

--use-libraries

Linter uses static libraries to install the spec.

--use-modular-headers

Lint uses modular headers during installation.

--sources=https://github.com/artsy/Specs,master

The sources from which to pull dependent pods (defaults to all available repos). Multiple sources must be comma-delimited..

--local-only

Does not perform the step of pushing REPO to its remote.

--no-private

Lint includes checks that apply only to public repos.

--skip-import-validation

Lint skips validating that the pod can be imported.

--skip-tests

Lint skips building and running tests during validation.

--commit-message="Fix bug in pod"

Add custom commit message. Opens default editor if no commit message is specified..

--use-json

Push JSON spec to repo.

--swift-version=VERSION

The SWIFT_VERSION that should be used when linting the spec. This takes precedence over a .swift-version file..

--no-overwrite

Disallow pushing that would overwrite an existing spec..

 

5.6 pod setup

 

pod setup 

 

Creates a directory at /home/travis/.cocoapods/repos which will hold your spec-repos. This is where it will create a clone of the public master spec-repo from:

https://github.com/CocoaPods/Specs

If the clone already exists, it will ensure that it is up-to-date.

posted @ 2018-08-27 13:59  carchywrx  阅读(248)  评论(0)    收藏  举报