Thanks for Vlad E. Borovtsov, Help me solve the problem, and I realized that there is a way not to close xcode. This is my way to fix this:
Go to ~/Library/Developer/Xcode/ , delete the DerivedData folder
+ r command to run or + b command to build
Try renaming, it works for me.
xocde reindex and rename may work
wlixcc
source share