File->Project Settings ... Advanced ... Build Location - Legacy - how to reset for all users?

I've got an old Xcode project, that when freshly checked out, has

File->Project Settings ... Advanced ... Build Location set to "Legacy"


When I set the value to "Default", all is good, and I can see that in

MyProject.xcodeproj/project.xcworkspace/xcuserdata/MyUsername.xcuserdatad/WorkspaceSettings.xcsettings,

the "BuildLocationStyle" entry has been set to "UseAppPreferences"


However, I would like other users doing a fresh checkout to get the

"Default" setting instead of the "Legacy" one.


Is there some way to change this for everyone, or alternatively, what

is it about the project that causes Xcode to pick "Legacy" initially?


cheers,

m.

The problem is caused by the variable SYMROOT in the *.xcodeproj/project.pbxproj file. The presence of this variable forces xcodebuild to use the legacy option instead of default, unless an WorkspaceSettings.xcsettings configuration file exists for the user and overrides it.

The solution is to open the project file in a text editor, and delete all lines that contain the variable name SYMROOT. After that opening a freshly cloned project will result in build location being set to default.

For example, in my project file, I had to remove all lines that looked like this:

SYMROOT = Build
File->Project Settings ... Advanced ... Build Location - Legacy - how to reset for all users?
 
 
Q