Your AC blow only warm air It is a 2000 Xterra Also while it is blowing it makes a whining noise?

If the compressor is running, the blower is blowing, and there's no cold air, you need freon. If the whining is from under the hood, the compressor may be damaged. That's what happens when running without freon.