Code Monkey home page Code Monkey logo

xcode-project-templates's Introduction

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 Podfile with SwiftLint and SwiftGen pods
    • Adds .swiftlint.yml file and SwiftLint Run Script to Build phases
    • Adds .swiftgen.yml file and SwiftGen 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

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. Open Build Phases of your target, remove unecessary files from Compile Sources and Copy Bundle Resources

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

xcode-project-templates's People

Contributors

gregoryvit avatar ismetanin avatar pavbox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xcode-project-templates's Issues

Add SwiftGen configuration

There will be good if we'll add SwiftGen configuration:

  • swiftgen.yml file generating
  • Localizable.strings and Localizable.swift files generating
  • Run script generating

Add Readme generating

I think there will be good enchantment if we'll add readme generating.

Something like this:

Project name

Little description

Requirements

  • iOS 10.0+
  • Xcode 8.3

Before running

For install all dependencies you should open project folder in Terminal and call: make init

Module generation

Before generation you should open project folder in Terminal

  • Screen generation: make screen modName=[SCREEN_NAME]

Problem with empty folders

Currently we have a problem in the templates. Template generates a lot of empty folders but git can't add empty folders to repo and it means that our teammates will download project without some folder.

I think we have two ways to fix it:

  1. Put .gitkeep file in each of folders
  2. Leave it as is

Fix readme file

I'd like to add preview and more detail description to the readme.md file

Add rambafile

I'd like to add rambafile creation as an option in project generation

Move Main.storyboard

I'd like to move Main.storyboard to some path because now it is created in the root folder

Add .gitignore

I'd like to add the .gitignore file with base rules to Surf Base Application.xctemplate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.