Xcode rebuilds entire project when nothing has changed

Using Xcode 15.3 on a Mac M1 with MacOS 14.5.

The project consists of C++, ObjC and Swift source files. CocoaPods is used for several libraries. CMake is used to generate the build files etc..

The issue is that any time I attempt to run the application (on any iOS device), it will always rebuild from scratch, which takes a considerable amount of time for this very large project. This occurs without any changes to the project; no source code changes, no resource file changes, nothing at all.

Would anyone have any idea as to why this would be happening?

Is there any diagnostic information I can enable in Xcode to show me exactly what changes it has detected, or what reason it may have for doing a full rebuild?

We're seeing similar behaviour - but only when building Debug. Release builds aren't currently affected. We would also appreciate any tips on how to get more diagnostic output.

Xcode rebuilds entire project when nothing has changed
 
 
Q