Getting started

This tutorial describes how to get started using the Gradle xcode plugin.

Requirements:

Step by Step Tutorial

Start Xcode and create a new project by selecting “Create a new Xcode Project” or by selecting the menu File -> New -> Project

Step-01

Select a template that you like, e.g. Single View Application

Step-02

Name the new Project ‘Example’

Step-03

Save the project to a location you like e.g. ‘Desktop/Demo’

Step-04

Create the config file for building with gradle

Create a new empty file with New -> File -> Other -> Empty

Step-05

Name it ‘build.gradle’

Enter the code:

plugins {
	id "org.openbakery.xcode-plugin" version "0.14.+"
}

xcodebuild {
	target = 'Example'
}

Step-06

Building the App

Open the Terminal.app and navigate into the project directory (e.g. cd ~/tmp/Demo/Example)

Enter ‘gradle xcodebuild’ and the projects builds

Step-07

Build Successful, so we are done