pod_push¶
Push a Podspec to Trunk or a private repository
pod_push | |
---|---|
Supported platforms | ios, mac |
Author | @squarefrog |
4 Examples¶
# If no path is supplied then Trunk will attempt to find the first Podspec in the current directory.
pod_push
# Alternatively, supply the Podspec file path
pod_push(path: "TSMessages.podspec")
# You may also push to a private repo instead of Trunk
pod_push(path: "TSMessages.podspec", repo: "MyRepo")
# If the podspec has a dependency on another private pod, then you will have to supply the sources you want the podspec to lint with for pod_push to succeed. Read more here - https://github.com/CocoaPods/CocoaPods/issues/2543.
pod_push(path: "TMessages.podspec", repo: "MyRepo", sources: ["https://github.com/username/Specs", "https://github.com/CocoaPods/Specs"])
Parameters¶
Key | Description | Default |
---|---|---|
use_bundle_exec |
Use bundle exec when there is a Gemfile presented | false |
path |
The Podspec you want to push | |
repo |
The repo you want to push. Pushes to Trunk by default | |
allow_warnings |
Allow warnings during pod push | |
use_libraries |
Allow lint to use static libraries to install the spec | |
sources |
The sources of repos you want the pod spec to lint with, separated by commas | |
swift_version |
The SWIFT_VERSION that should be used to lint the spec. This takes precedence over a .swift-version file | |
verbose |
Show more debugging information | false |
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action pod_push