a fruit fly called spotted wing drosophila lays eggs in fruit as it ripens on the plant. spraying with products that include the insecticide spinosad is the best defense against these troublemakers.