How to set new build system in Xcode 13.3?

Hi everyone,

To enable new build mode in Xcode 13.3, it needs to run following command in terminal:


defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1


If new team member installs Xcode 13.3 and forgets to execute above command he gets build error locally.


Is there a way that above command can be set as a script or flag in Xcode so new engineer doesn't need to worry about executing it in a local terminal?


Note: I tried saving it as Run Script in App target and as a argument in Run scheme. It didn't work.

Posted on May 19, 2022 8:38 AM

Reply

Similar questions

1 reply

May 24, 2022 1:19 PM in response to VDeshmukh

You can take over management of macOS for these developers; MDM, etc.


You can push out commands using ARD or ssh, given admin access. The command for this is then:


sudo -u <username> defaults write...


If you're working with a shared source pool (git, hg, fossil, etc), you can have the code in the source pool check the settings when the default project build is launched.


Endpoint security tools can likely be leveraged here, too.


There's probably a way to use a logon script from LDAP, but I've not tried that path.


Here's a product example that's very close to your requirements: https://www.hexnode.com/mobile-device-management/help/script-to-customize-login-window-on-mac/


Or you can send out mail to the developers suggesting the command when updating to Xcode 13.3, or to Xcode 13.3.1, or (better) to the (current) Xcode 13.4 version. Given the choice, I'd tend to use this approach as the simplest, and would also "encourage" developers upgrade to Xcode 13.4.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to set new build system in Xcode 13.3?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.