Depending on the size of the cubes, it should take anywhere from 10 to 15 minutes to cook sweet potatoes in the air fryer.