gradle-xcode-plugin
A gradle plugin for building xcode projects.
Basic usage
Add to your build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.felixschulze.gradle:gradle-xcode-plugin:0.5+'
}
}
apply plugin: 'xcode'
Tasks
xcodeBuild
: Build projectxcodeClean
: Clean project and delete build directoryxcodeTest
: Run XCTestsclangScanBuild
: Run clang scan-buildghunitTest
: Run GHUnit Tests
Advanced usage
Add to your build.gradle
xcode {
teamCityLog = true
xcodeWorkspace = "AutoScout.xcworkspace"
xcodeScheme = "AutoScout24"
xcodeSdk = "iphonesimulator7.0"
xcodeConfiguration = "Debug"
teamCityLog = true
iosSimPath = "/usr/local/bin/ios-sim"
ghunitAppName = "AutoScout24ViewTests"
ghunitXcodeScheme = "AutoScout24ViewTests"
}
teamCityLog
: Add features for TeamCityxcodeWorkspace
: Path to.xcworkspace
filexcodeScheme
: The scheme namexcodeSdk
: The SDK to build forxcodeConfiguration
: The Configuration to build foriosSimPath
: Path to ios-simghunitAppName
: The app name from the gh-unit test targetghunitXcodeScheme
: The scheme name for the gh-unit test
Changelog
License
gradle-xcode-plugin is available under the MIT license. See the LICENSE file for more info.