Fruit flies can be a problem year-round but are especially common during late summer/fall because they attract ripened or fermenting fruits and vegetables. Their lifespan is about 30 days. Fruit flies are common in homes, restaurants, supermarkets and wherever else food is allowed to rot and ferment. Fruit flies lay their eggs near the surface of fermenting foods or other moist, organic materials. The reproductive potential for fruit flies is extensive, and given the right conditions, a female can lay up to 500 eggs and their complete lifecycle from hatching to adult only lasts about a week. Reasons for entering home: THey enter our homes at the sign of any food source. They often enter on their own but can also be brought in during their larva stage in produce from our gardens or the supermarket. Diet: Tomatoes, melons, squash, grapes and other perishable items brought in from the garden are often the cause of an infestation developing indoors. Fruit flies are also attracted to rotting bananas, potatoes, onions and other unrefrigerated produce purchased at the grocery store.