Need help with gradle-xcodePlugin?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

433 Stars 123 Forks Apache License 2.0 1.4K Commits 13 Opened issues


gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS

Services available


Need anything else?

Contributors list


Build Status Coverage Status

The gradle xcode plugin (gxp) makes it easier to build Xcode projects by specifying the build settings in a single configuration file. The goal is to keep the build file as simple as possible, but also enable a great flexibility for the build.

The gxp uses the Apple command line tools (like xcodebuild) to perform the build.

Here a brief overview of the features:

  • Build iOS, watchOS, tvOS and Mac projects
  • Override sign settings for builds
  • Perform unit tests
  • Support for multiple Xcodes (on one machine)
  • Cocoapods support
  • Carthage support
  • Appledoc support
  • Code coverage support (using gcovr or using CoverageReport )
  • OCLint


Xcode 7 or greater * Gradle 2.14 or greater * Java 1.6 or greater

Current stable version is 0.20.1

Parameters Documentation


Create a build.gradle file and place it in the same directory where xcodeproj file lies.

Here the minimal content you need in your build.gradle file:

plugins {
  id "org.openbakery.xcode-plugin" version "0.20.2"

xcodebuild { scheme = 'MY-SCHEMA' target = 'MY-TARGET' }

You can also use the version that is deployed the repository on with the following build.gradle file configuration: ``` buildscript { repositories { maven { url('') } mavenCentral() }

dependencies { classpath "org.openbakery:xcode-plugin:0.20.+" } }

apply plugin: "org.openbakery.xcode-plugin" ```

Current develop version

When using the repository you can also get the latest develop version by including

into the version pattern. e.g.:
classpath "org.openbakery:xcode-plugin:0.21.0.develop.+"

The develop version contains all the changes from the develop branch, where all the fixes and feature are implemented. The development version is deployed automatically when all the projects unit tests are successful, and also the if the example projects build.


You find example projects in example/ with a working build.gradle file. After you have fetched the example go to the

directory and you build the project different targets:
  • Build with
    gradle xcodebuild
  • Run the unit tests with
    gradle test
  • Perform a device build and upload it to App Center with
    gradle integration
    . Here you need to specify your sign settings first (see Signing ). Open the build.gradle file an follow the instructions.
  • Perform an appstore build with
    gradle appstore
    . (Also the sign settings are needed).

Need help?

If you need help you can create an issue here on GitHub, you can send me a mail or ask on twitter.


I'm always happy to receive pull requests with new features and if you send a pull request please consider the following things:

  • Use the develop branch for pull requests, because all the new stuff is implemented in the develop branch and also pull requests are always merge into develop
  • Use Tabs instead of spaces.
  • Make sure that all unit tests are working before you send the pull request. Just run 'gradle test'
  • I urge you to write unit tests.
  • For unit test please use the spock framework for mocking. I want to remove the old gmock framework and port the old tests to use spock.
  • Pull requests that contains new features or fixes but without any unit tests will NOT be merged.


This project is licensed under the terms of the Apache license. See the LICENSE file.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.