Fruit flies are attracted to yeast resulting from the initial decomposition of plant materials. Sap flows, overripe produce and mushrooms are also foods of choice. Do pesky fruit flies hover around your fresh produce? Find out how you can get them out of your kitchen. Home» Insect & Pest Info» Home & Health Pests» Fruit Flies Fruit flies are also attracted to rotting bananas, potatoes, onions and other Fruit flies lay their eggs near the surface of fermenting foods or other moist, organic materials.