Method 1
Press the shortcut key shift+command+G or the Finder icon and right-click to select Go to folder... Call out the Go to folder box
Enter the following
/Users/(Your own computer name)/Library/Developer/Xcode/DerivedData
Enter
Then delete the file in the directory
Method 2
You open Finder, then click "Go" on the head, and then press the option key on your keyboard (a resource library will appear, and you will disappear again if you let go). Click resource library, and enter in turn
Developer/Xcode/DerivedData/ModuleCache
It's OK.
Then delete the file in the directory
The above method of clearing xcode cache and generating files on iOS is all the content I share with you. I hope you can give you a reference and I hope you can support me more.