Page MenuHome

Generate Xcode scheme files during configuration.

Authored by Ankit Meel (ankitm) on Sep 6 2020, 8:04 PM.



Every time CMake is re-run, Xcode shows a popup asking if
user wants to manage schemes automatically or manually.
Building Blender wiki page recommends managing schemes automatically.

This change sets the default behavior to "automatically" and generates
the .xcscheme files while CMake is running, instead of hogging Xcode
later on. With tests enabled, the number of schemes is 203.

Diff Detail

rB Blender
scheme (branched from master)
Build Status
Buildable 10030
Build 10030: arc lint + arc unit

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Sep 6 2020, 8:04 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Sep 6 2020, 8:10 PM

I tried setting install as the default scheme but there seems to be nothing like VS_STARTUP_PROJECT for Xcode.
xcodebuild offers building specific scheme via CLI but not setting it in Xcode.
Since this information is stored in XML files with an apparently opaque API, any solution would most likely work locally only.

Brecht Van Lommel (brecht) requested changes to this revision.Sep 7 2020, 3:01 PM

Move this code into platform_apple_xcode.cmake

This revision now requires changes to proceed.Sep 7 2020, 3:01 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
  • Move the setting to platform_apple_xcode.cmake
This revision is now accepted and ready to land.Sep 7 2020, 6:29 PM