rm -rf ~/Library/Developer/Xcode/DerivedData/*
About this Mac - Storage - Manage - Developer
Find where is the derivedData in preferences → Location setting in Xcode and then delete it