Fill a small jar with water and apple cider vinegar and add some dish soap. Fruit flies will land on the liquid and can’t get out because of the soap.