Uncategorized (Xcode): Command ClangStatCache failed with a nonzero exit code

I'm encountering an issue while trying to build my iOS app in Xcode for the simulator.

Issue:

  • Xcode Version: 15.x
  • macOS Version: 14.x (Sonoma)
  • Simulator: iPhone 16 Pro
  • Error Message: Command ClangStatCache failed with a nonzero exit code

Steps Taken:

  1. Cleaned build folder (Shift + Cmd + K)
  2. Deleted DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData)
  3. Updated Xcode and checked iOS SDK updates
  4. Disabled Clang Static Analyzer Cache

None of these steps resolved the issue. Any help would be appreciated!

Thanks in advance.

Uncategorized (Xcode): Command ClangStatCache failed with a nonzero exit code
 
 
Q