It could be a number of things. When I hear arching and screaming, I think "Nipple Confusion." I highly doubt an apple would cause this, in more than 20 years as a Lactation Consultant I've never seen babies become averse to the breast because of solid food. I've seen babies overfed solid food and are not hungry, but that doesn't seem like the problem here at all.
Nipple confusion occurs in some babies when any type of alternative sucking is introduced. Of course, bottle nipples are the main cause, even one bottle can do it for some babies (while other never have any problems) I've seen babies get NC from sippy cups, especially the ones that look just like bottle nipples. Pacifiers can cause NC in some babies. Of course the cure is to eliminate the artificial nipple and the baby will go back to the breast. If your baby needs to be fed by a method other than the breast, using a small feeding cup or syringe may be the solution until the nipple confusion is cleared up.
Sick babies sometimes refuse the breast, ear aches, sore throats, teething babies etc may cry at the breast. Treating the illness or rubbing the gums right before feeding can help. Some babies with ear aches may be more uncomfortable when lying on the effected side. Some babies with gastroesophageal reflux can experience pain while eating anything, and eventually link the pain with food. These babies will require you to schedule both a doctor's appt and an appt with a Board Certified Lactation Consultant so the problem and the feeding problem can be remedied.
If we look at human evolution and survival it makes no sense that babies would wean at an age before they could live without human milk. The very youngest babies can survive w/o human milk is about 10-12 months, with some babies doing OK a month or so before that. But, self weaning at five months is usually not the baby actually "weaning" but is an aversion caused by other things.
Try nursing your baby while she is almost asleep, just before she would wake up or in the tub filled with warm water. Change the position you nurse in, walk while latching or breastfeeding and ride this out. Chances are very high things will clear up eventually.