Module xcode

The xcode module contains properties and rules for Xcode-based development. This module provides the foundation for several other modules on Apple platforms, including the cpp and ib modules.

General Properties

PropertyTypeSinceDefaultDescription
developerPathpath1.5"/Applications/Xcode.app/Contents/Developer"Developer directory of the Xcode installation. By default this is set to the developer directory of the Xcode installation at its default location in /Applications. Corresponds to the DEVELOPER_DIR environment variable.
sdkstring1.5determined by qbs.targetOSVersion of the Xcode SDK used to build products. This can be specified as a full canonical SDK name (i.e. "macosx10.10"), a platform version number (i.e. "10.10"), or a platform identifier (i.e. "macosx") in which case the latest SDK available for that platform will be used. The default is the latest SDK available in the Xcode installation for the current platform.
targetDevicesstringList1.5determined by qbs.targetOSList of the Apple devices targeted by this product. For macOS, watchOS, and tvOS, this should always be "mac", "watch", and "tv", respectively. For iOS, this can be one or both of "iphone" and "ipad". The default is the list of all device types supported by the current platform.

Read-only Properties

PropertyTypeSinceDefaultDescription
sdkNamestring1.5determined by xcode.sdkCanonical name of the SDK used to build products. For example, macosx10.9.
sdkVersionstring1.5determined by xcode.sdkVersion number of the SDK used to build products. For example, 10.9.
latestSdkNamestring1.5determined by xcode.developerPathCanonical name of the latest SDK available in the Xcode installation. For example, macosx10.10.
latestSdkVersionstring1.5determined by xcode.developerPathVersion number of the latest SDK available in the Xcode installation. For example, 10.10.
availableSdkNamesstringList1.5determined by xcode.developerPathCanonical names of all SDKs available in the Xcode installation for the current platform. For example, [macosx10.9, macosx10.10].
availableSdkVersionsstringList1.5determined by xcode.developerPathVersion numbers of all SDK available in the Xcode installation for the current platform. For example, [10.9, 10.10].
platformPathpath1.5determined by xcode.developerPathPath of the platform directory containing xcode.sdkPath.
sdkPathpath1.5determined by xcode.developerPath and xcode.sdkPath of the SDK used to build products. Equivalent to cpp.sysroot.