{% github asmallteapot cocoapods-playgrounds c54b492 width = 30% %} issues 62

在playground中优雅的使用Pod

This Could Be Us But You Playing

Build Status

Generates a Swift Playground for any Pod.

Installation

$ gem install cocoapods-playgrounds

Usage

CocoaPods

To generate a Playground for a specific Pod:

1
$ pod playgrounds Alamofire

To generate a Playground for a local development Pod:

1
$ pod playgrounds ../../../Sources/Alamofire/Alamofire.podspec

To generate a Playground with multiple Pods:

1
$ pod playgrounds RxSwift,RxCocoa

Carthage

To generate a Playground for a Carthage-enabled library:

1
$ carthage-play Alamofire/Alamofire

Note: This currently assumes that libraries are hosted on GitHub.

CLI

To generate an empty Playground from the commandline:

1
2
$ playground --platform=ios YOLO
$ open YOLO.playground