SwiftGen

(★ 9,547)

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

  • .gitattributes
  • .gitignore
  • .rubocop.yml
  • .ruby-version
  • .swift-version
  • .swiftlint.yml
  • CHANGELOG.md
  • COMMUNITY.md
  • CONTRIBUTING.md
  • DEPENDENCIES.md
  • Gemfile
  • Gemfile.lock
  • LICENCE
  • Package.resolved
  • Package.resources
  • Package.swift
  • Rakefile
  • README.md
  • SwiftGen.podspec
  • SwiftGenKit.podspec

# Installation Guide

1. Get the code
git clone https://github.com/SwiftGen/SwiftGen

Downloads the entire project code from GitHub to your computer.

cd SwiftGen

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Homebrew A package manager for macOS/Linux.
  • Ruby Ruby is required to use gem.
brew install swiftgen --HEAD

Installs the pre-built package via Homebrew — no source build required.

gem install bundle

Installs the package published on RubyGems directly.

After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Ruby

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Ruby Ruby is required to use the bundle command.
gem install bundle

Installs the package published on RubyGems directly.

bundle install

Installs the Ruby libraries listed in the Gemfile.

If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).

Pulled directly from this repo's README.

// repository documentation