Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Surf Application Unit Test Base.xctemplate
Surf Base Application.xctemplate
Surf MVP Application.xctemplate
.gitkeep
LICENSE
PULL_REQUEST_TEMPLATE.md
README.md
install.sh

README.md

Xcode-Project-Templates

This repository contains Xcode project templates to start up a new project.

Requirements

Xcode 8 or later.

Base features (contains in all templates)

  • Folders structure - сreates folders for good structuring of the files
  • Gitignore - adds gitignore file with base rules

List of templates

  • Surf MVP Application

    Features

    • Adds ModuleTransitionable.swift file to project
    • Adds Podfile with Fabric, Crashlytics, SwiftLint and SwiftGen pods
    • Adds .swiftlint.yml file and SwiftLint Run Script to Build phases
    • Adds Gemfile with fastlane, cocoapods, synx and generamba gems
    • Creates Fastlane files with template methods
    • Creates Rambafile with surf_mvp_module template and paths to project target and tests target
    • Creates Makefile with helper methods

    Options

    • Storyboards - creates Main.storyboard file
    • Alamofire - adds Alamofire, AlamofireImage and AlamofireNetworkActivityIndicator pods

Installation

To install or update the templates you need:

  1. Quit Xcode
  2. On the command line:
cd ~/Downloads
git clone https://github.com/surfstudio/Xcode-Project-Templates
cd Xcode-Project-Templates
sh ./install.sh
cd ..
rm -rf Xcode-Project-Templates

Or if you have a cloned repository:

  • On the command line, cd into the directory with cloned templates and write sh ./install.sh

screen shot 2017-08-21 at 20 41 30

After that:

  • Launch Xcode and select create a new Xcode project and you'll see the new category "User Templates" that will contain new templates

screen shot 2017-08-20 at 12 35 40

After creating a project

Fix folders links

  1. Open up the Terminal and cd into your project folder
  2. Call in Terminal make init
  3. Call make synx

Remove unnecessary files

  1. Open up the .xcodeproj file
  2. Remove the Non-iOS Resources folder from the Xcode project by selecting that folder in the sidebar, right clicking, then selecting delete from the menu, then selecting "Remove References" in the dialog that pops up

Insert keys in Fastlane files

  1. Open fastlane folder
  2. Insert team_id in AppFile
  3. Insert api_token, build secret and emails in upload_to_fabric lane