Skip to content

CaueAlvesSilva/PodGenerator

Repository files navigation

PodGenerator

PodGenerator is a command line tool written in Swift that generates your Pod base development workspace with framework and sample app targets.

  • Easy setup for a modularized project.
  • Create a framework prepared to be distributed using CocoaPods as local or remote, private or public pod.
  • Provide a configured workspace for the framework source code with integrated unit tests and a sample app for UX tests simulations.

Required conditions


Installing

Make

git clone https://github.com/CaueAlvesSilva/PodGenerator.git
cd PodGenerator
make install

Homebrew

Coming soon...

Usage

Navigate to your repo directory and simply run:

podgen YourPodName

The below folders and files structure will be created:

YourPodName
│ - Gemfile
│ - Podile
│ - project.yml
│ - YourPodName.podspec
└── YourPodName
│   │ - Info.plist
│   │ - YourPodName.h
│   └── Classes
│       │ - YourPodName.swift
└── YourPodNameTests
│   │ - Info.plist
│   │ - YourPodNameTests.swift
└── SampleApp
│   │ - project.yml
│   └── SampleApp
│       │ - AppDelegate.swift
│       │ - Info.plist
│       │ - Assets.xcassets
│       │ - Main.storyboard
│       │ - LaunchScreen.storyboard
│       │ - ViewController.swift

Then, a script using brew will install and execute XcodeGen and Bundler to respectively generate the .xcodeproj and .xcworkspace.


Attributions

This tool is powered by:


License

PodGenerator is licensed under the MIT license. See LICENSE for more info.