79530407

Date: 2025-03-24 07:34:10
Score: 4
Natty:
Report link

If you’re seeing the same error duplicated across all targets in Xcode 14 or newer, even though only one target is active, here’s the actual fix:

Go to Xcode > Settings > General, and under the “Issues” section and disable “Show live issues”.

This setting is responsible for scanning and reporting issues from all targets in your project or workspace, regardless of which one is currently selected. That includes static analysis, preprocessor errors, and undeclared identifiers – all duplicated for each target that includes the source file.

Tested and confirmed to resolve the issue.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): seeing the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Piotr