My Xcode project has six different targets/schemes (I've never been clear on the difference, but in any case I have six targets and six schemes), all based on the same sources in different ways. I just started using Xcode 14.1 (from a substantially older version), and now when I do a build it builds all of my targets/schemes and shows issues for them all on the left:
This is not what I want. For one thing, since the targets/schemes are all based on the same sources I'm seeing a lot of the same issues repeated over and over. For another thing, when I'm working on a particular target/scheme I really want to focus on that and not be distracted. Also, I don't really want my machine to be slowed down by building all those other targets/schemes; I want my build turnaround to be as fast as possible.
So. How I do get back the old behavior of Xcode that I'm used to, of building just the currently selected scheme and its associated target? I'm looked in the preferences and "behaviors", and googled, and maybe I'm blind but I can't see any mention of this anywhere.
[ADDENDUM, pursuant to the comments from Matt. It continues to happen, now with errors rather than warnings, and unrelated to deprecation. Here's a new screenshot:
I made a change in a header that broke usage in various places in the project. Now my issues pane is filled with crap from other targets – mostly the SAME crap, repeated for each target. Particularly annoyingly, the target I have selected and am working on, called slim_multi
, doesn't even come first in the issues pane – it's down at the bottom, after all of the other targets I'm NOT working on. I tried switching to other targets and doing "Clean Build Folder"; that made no difference to the situation. There must be a fix for this!]