public interface XcodeIdeProject extends IdeProject, Named, XcodeIdeProjectReference
It is assumed that each project will delegate to Gradle for building. The generated Xcode projects act as a bridge to allow a native Xcode IDE experience.An Xcode project is a repository for all the files, resources, and information required to build one or more software products. A project contains all the elements used to build your products and maintains the relationships between those elements. It contains one or more targets, which specify how to build products. A project defines default build settings for all the targets in the project (each target can also specify its own build settings, which override the project build settings).
—Xcode Projects Concept
Named.Namer
Modifier and Type | Method and Description |
---|---|
NamedDomainObjectContainer<XcodeIdeGroup> |
getGroups()
Returns the source groups for this project.
|
XcodeIdeProject |
getIdeProject()
Returns this Xcode project instance.
|
Provider<FileSystemLocation> |
getLocation()
Returns the location of the generated project.
|
ConfigurableFileCollection |
getSources()
Returns the sources to include in the main group of this project.
|
NamedDomainObjectContainer<XcodeIdeTarget> |
getTargets()
Returns the targets for this project.
|
void |
groups(Action<? super NamedDomainObjectContainer<XcodeIdeGroup>> action)
Configures the group container with the specified action.
|
void |
targets(Action<? super NamedDomainObjectContainer<XcodeIdeTarget>> action)
Configures the target container with the specified action.
|
Provider<FileSystemLocation> getLocation()
${project.projectDir}/${project.name}.xcodeproj.
getLocation
in interface IdeProject
getLocation
in interface XcodeIdeProjectReference
NamedDomainObjectContainer<XcodeIdeTarget> getTargets()
XcodeIdeTarget
to configure the target, never null.void targets(Action<? super NamedDomainObjectContainer<XcodeIdeTarget>> action)
action
- a configuration action for the container of XcodeIdeTarget
instances.NullPointerException
- if the action is nullNamedDomainObjectContainer<XcodeIdeGroup> getGroups()
XcodeIdeGroup
to configure the group, never null.void groups(Action<? super NamedDomainObjectContainer<XcodeIdeGroup>> action)
action
- a configuration action for the container of XcodeIdeGroup
instances.NullPointerException
- if the action is nullConfigurableFileCollection getSources()
XcodeIdeProject getIdeProject()
XcodeIdeProject
instance, never null.