Search code examples
iosswiftxcode

Xcode incorrectly set to use legacy build system


I'm using Xcode 11.3 alongside MacOS 10.15.2. Even though the project settings are correctly set to New Build System, the orange hammer is still present in the activity view as pictured below.

enter image description here

According to this doc that means

Projects configured to use the legacy build system will display an orange hammer icon in the Activity View.

This stops me from being able to use Swift Package Manager. I get an error stating Packages are not supported when using the legacy build system, but the current workspace has it enabled.

I've attempted to reinstall Xcode multiple times already with no luck. This happens for new projects and workspaces also. There doesn't appear to be a lot about how to manage this elsewhere.

Any ideas ?


Solution

  • The codebase I was using had some setup steps which included

    defaults write com.apple.dt.Xcode UseModernBuildSystem -bool NO

    This affected any new projects that I created. Setting this to YES solved my problem.