targets

fun targets(vararg names: String)

Add Xcode application target names, for example targets("iosApp").


abstract val targets: ListProperty<String>

The exact Xcode application targets whose build configurations may change.

This scopes the project.pbxproj app settings only. Project-level locales and the file-based plist, Podfile, and Swift work use their own paths.

Default: empty. An empty list can still select a sole application target when an enabled update needs one.

Throws

GradleException

at task time when a named target is missing, or when the list is empty and the project holds more than one application target, which would make the choice a guess.