The apple of one’s eye is the pupil, which was likened to an apple because, in the ninth century, it was believed to be a solid round mass.
What is the apple of one’s eye?

The apple of one’s eye is the pupil, which was likened to an apple because, in the ninth century, it was believed to be a solid round mass.