Is there a way to build multiple targets on the same build script on IOS?

I am using XCODE plugin and I am able to build a single target but I am wondering whether I can build all my targets at once?

My current Script(Which works fine for single target):

buildscript {

repositories

{

maven

{

url(‘http://openbakery.org/repository/’)

}

mavenCentral()

}

dependencies

{

classpath group: ‘org.openbakery’, name: ‘xcodePlugin’, version: ‘0.9.2’

} } apply plugin: ‘xcode’

xcodebuild

{

scheme = ‘TestBuildGradle’

configuration = ‘Debug’

sdk = ‘iphonesimulator7.0’

target = ‘TestBuildGradle’

unitTestTarget = ‘TestBuildGradleTests’

destination

{

platform = ‘iOS Simulator’

name = ‘iPhone Retina (3.5-inch)’

os=‘7.0’

} }

I am looking at some options like

target = “allTargets” or target = [‘Target1’, ‘Target2’, ‘Target3’, …]

After having a brief look on the xcode plugin it looks like there is no way to declare multiple targets. The xcode plugin is not part of the core gradle distribution. I would suggest to raise this issue directly at the associated github project at https://github.com/openbakery/gradle-xcodePlugin

cheers, René

Did you ever fix the unit test issue you posted but removed? I’m having the exact same problem.