# CMAKE_XCODE_GENERATE_SCHEME

If enabled, the Xcode generator will generate schema files. Those are are useful to invoke analyze, archive, build-for-testing and test actions from the command line.

Note

The Xcode Schema Generator is still experimental and subject to change.

The following target properties overwrite the default of the corresponding settings on the “Diagnostic” tab for each schema file. Each of those is initialized by the respective `CMAKE_` variable at target creation time.

- `XCODE_SCHEME_ADDRESS_SANITIZER`
- `XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN`
- `XCODE_SCHEME_THREAD_SANITIZER`
- `XCODE_SCHEME_THREAD_SANITIZER_STOP`
- `XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER`
- `XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP`
- `XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER`
- `XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP`
- `XCODE_SCHEME_MALLOC_SCRIBBLE`
- `XCODE_SCHEME_MALLOC_GUARD_EDGES`
- `XCODE_SCHEME_GUARD_MALLOC`
- `XCODE_SCHEME_ZOMBIE_OBJECTS`
- `XCODE_SCHEME_MALLOC_STACK`
- `XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE`
- `XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS`

The following target properties will be applied on the “Info” and “Arguments” tab:

- `XCODE_SCHEME_EXECUTABLE`
- `XCODE_SCHEME_ARGUMENTS`
- `XCODE_SCHEME_ENVIRONMENT`