Skip to content

Easily generate cross platform Swift framework projects from the command line

License

Notifications You must be signed in to change notification settings

dani-mp/SwiftPlate

This branch is 16 commits behind JohnSundell/SwiftPlate:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1115c6d · Apr 27, 2017
Apr 12, 2017
Apr 27, 2017
Nov 27, 2016
Nov 20, 2016
Nov 22, 2016
Mar 14, 2017
Mar 30, 2017
Nov 20, 2016
Nov 25, 2016

Repository files navigation

SwiftPlate

Easily generate cross platform Swift framework projects from the command line.

SwiftPlate will generate Xcode projects for you in seconds, that support:

  • CocoaPods
  • Carthage
  • Swift Package Manager
  • iOS
  • macOS
  • watchOS
  • tvOS
  • Linux

Just run swiftplate, and you’ll be presented with a simple step-by-step guide:

Screenshot

Usage

Using Homebrew (recommended)

$ brew install swiftplate
$ swiftplate

Using Make

$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ cd swiftplate
$ make

Using Marathon

$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ marathon run swiftplate/main

Using the Swift interpreter directly

$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ swift swiftplate/main.swift

Using Xcode

$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ open swiftplate/SwiftPlate.xcodeproj

Command line arguments

Besides using the guide to input information, SwiftPlate also supports command line arguments when launched. When a certain piece of information is supplied through an argument, SwiftPlate won't ask for that information when run. These are the arguments currently supported:

Name Description Long parameter Short parameter
Destination Where the generated project should be saved --destination -d
Project name The name of your project --project -p
Author name Your name --name -n
Author email Your email (for Podspec) --email -e
GitHub URL Any URL you'll be hosting the project at (for Podspec) --url -u
Organization name The name of your organization --organization -o
Repo Any custom SwiftPlate repository that should be used for templates --repo -r
Force Prevent user prompt at the end (for CIs etc.) --force -f

Questions or feedback?

Feel free to open an issue, or find me @johnsundell on Twitter.

About

Easily generate cross platform Swift framework projects from the command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 88.6%
  • Python 5.3%
  • Ruby 3.4%
  • Makefile 2.7%