screenshot from xcode
If you recently upgraded to macOS Sequoia, adjusting the project configuration resolved the issue. Choose the configuration you need and link it.