Skip to content

Instantly share code, notes, and snippets.

@orta
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orta/8c994b4ec89cfad890c7 to your computer and use it in GitHub Desktop.
Save orta/8c994b4ec89cfad890c7 to your computer and use it in GitHub Desktop.
Pod Template Preview

Run this, switching MyLib to whatever.

pod lib create MyLib https://github.com/orta/pod-template

And it will pull in the next version of pod lib create. It's iOS only and very opinionated, it's more or less feature complete now, you should be able to go from pod lib create XXX to uploaded and on travis CI super super quick!

@bastos
Copy link

bastos commented Jun 21, 2014

It works (Xcode 5.1.1 (5B1008)).

At the end the script prompts that will open 'Example/MyLib.xcworkspace', the right path is MyLib/Example/MyLib.xcworkspace/.

Feature Request: Be able to change the prefix ;)

@rawrjustin
Copy link

justins-mbp:zumper justin$ pod --version
0.33.1
justins-mbp:zumper justin$ pod lib create ZumperColors https://github.com/orta/pod-template
Cloning `https://github.com/orta/pod-template` into `ZumperColors`.
Configuring ZumperColors template.
 We need to ask 3-4 questions to get you set up with a fresh project

What testing frameworks will you use? [Specta Kiwi]
 > Specta
Would you like to do view based testing? [Yes No]
 > No
Would you like to have a demo project also? [Yes No]
 > No
/Users/justin/Zumper/ZumperColors/setup/ProjectManipulator.rb:68:in `read': No such file or directory - Podfile (Errno::ENOENT)
    from /Users/justin/Zumper/ZumperColors/setup/ProjectManipulator.rb:68:in `remove_demo_project'
    from /Users/justin/Zumper/ZumperColors/setup/ProjectManipulator.rb:23:in `run'
    from /Users/justin/Zumper/ZumperColors/setup/ConfigureiOS.rb:53:in `perform'
    from /Users/justin/Zumper/ZumperColors/setup/ConfigureiOS.rb:7:in `perform'
    from /Users/justin/Zumper/ZumperColors/setup/TemplateConfigurator.rb:34:in `run'
    from ./configure:9:in `<main>'

To learn more about the template see `https://github.com/orta/pod-template`.
To learn more about creating a new pod, see `http://guides.cocoapods.org/making/making-a-cocoapod`.

@orta
Copy link
Author

orta commented Jun 22, 2014

@rawjustin - fixed!
@bastos - thinking about it.

@jk
Copy link

jk commented Jun 24, 2014

@orta You would probably also ask for a three letter prefix instead of just using CPD. Renaming that with Xcodes holy refactoring support isn't really the definition of »fun« :-)

@orta
Copy link
Author

orta commented Jun 25, 2014

agreed, this is now in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment