Build
The geko build command builds all buildable schemes of the project in the current directory.
geko buildTo build a specific scheme, pass its name, for example the scheme of the main application:
geko build MainAppTo build a specific module, for example Framework1, which is described in a scheme via scheme generation:
geko build Framework1Choosing a destination
Specify a device with the --device flag:
geko build MainApp --device "iPhone 17 Pro"Specify an operating system version with the --os flag:
geko build MainApp --os "26.5"Specify a platform with the --platform flag:
geko build MainApp --platform "iOS"Alternatively, you can pass a build destination directly to xcodebuild with the -destination flag:
geko build MainApp -- -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.5'Other options
Build using the release configuration with the --configuration flag:
geko build MainApp --configuration ReleaseClean the project before building:
geko build MainApp --cleanSpecify a custom Derived Data path:
geko build MainApp -- -derivedDataPath /custom/path/DerivedDataPassing arguments to xcodebuild
Any arguments placed after the -- terminator are passed through to xcodebuild verbatim. This lets you use any xcodebuild option that is not exposed as a dedicated geko build flag:
geko build MainApp -- -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.5'geko build MainApp -- -derivedDataPath /custom/path/DerivedDataArguments that cannot be passed through
Some xcodebuild arguments are blocked and cannot be passed after the -- terminator, because they are already handled by Geko itself:
| Argument | Why it is not available |
|---|---|
-scheme | The scheme is chosen with the positional scheme argument (geko build <scheme>). Passing -scheme would conflict with it. |
-workspace | Geko generates and selects the workspace to build. |
-project | Geko generates and selects the Xcode project to build. |
