一个 CocoaPods 插件,可让您轻松从 podspec 生成工作区。
cocoapods-generateA CocoaPods plugin that allows you to easily generate a workspace from a podspec.
Whether you want to completely remove all Xcode projects from your library's repository or you want to be able to focus on a small piece of a monorepo, a single pod gen command will build up a workspace suitable for writing, running, testing, and debugging in Xcode.
When you're done working, you don't have to do anything -- and that means no merge conflicts, no managing Xcode projects, and no tearing down a sample app setup. pod gen manages all that for you.
Add this line to your application's Gemfile:
gem 'cocoapods-generate'And then execute:
$ bundleOr install it yourself as:
$ gem install cocoapods-generateThe main point of interaction with the plugin is via the pod gen command.
It takes in a list of podspecs (or directories) as arguments,
as well as many options that modify how gen will create your workspace.
….gen_config.ymlAll of the command line options above can also be specified in a .gen_config.yml file.
For example, the equivalent of running pod gen --no-deterministic-uuids --sources=a,b --gen-directory=/tmp/gen --use-libraries would be
deterministic_uuids: false
sources:
- a
- b
gen_directory: /tmp/gen
use_libraries: trueAfter checking out the repo, run bin/setup to install dependencies. Then, run bin/rake spec to run the tests.
You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
To release a new version, update the version number in VERSION, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/square/cocoapods-generate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Everyone interacting in the cocoapods-generate project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
暂无开放 Issues,或尚未同步最近议题。