This might be an Xcode issue. I found an open GitHub thread that seems related to your issue, and it includes a list of workarounds from other developers that might help you gain insights into the issue you're encountering.