How to use cocoapods with playground?

vinbhai4u picture vinbhai4u · Oct 27, 2015 · Viewed 17.3k times · Source

I am trying out some pods before I implement it with my main project I want to make sure it works properly for my requirement. Easiest way is to try it with playground.

I tried pod init with playground which doesn't work

[!] No xcode project found, please specify one

Help is much appreciated.

Answer

jkistler picture jkistler · Apr 26, 2016

This is an old question but shows up at the top of Google.

This Could Be Us But You Playing is a command line tool that creates a new Xcode playground with an integrated cocoapod. It also supports integrating multiple cocoapods at once. It's a single command.

  1. To Install: gem install cocoapods-playgrounds
  2. To Use: pod playgrounds Alamofire
  3. Wait for playground to open then build it.