Why my macbook 2015 13 inch hums when working with latest Xcode?
The 2015 MacBook Pro uses a Solid State drive, so there's nothing on it that going to "hum."

In fact, the only mechanical component in the MacBook Pro (besides the keys and LCD hinge, of course) is the fan.  The fan may be spinning up due to the increased load put on the CPU.  Additionally, it may be clogged with dust or the bearing is simply defective.  

Try giving it a cleaning and see if the problem goes away.  There's no need to "reset" your drive as this would have no effect.