Pineapple
late Middle English (denoting a pine cone): from pine1 + apple. The word was applied to the fruit in the mid 17th century, because of its resemblance to a pine cone.
wiktionary
From Middle English pinappel(“pinecone”, literally “pine-apple/pine-fruit”), equivalent to pine + apple. Later applied to the fruit of the pineapple plant due to its resemblance to a pinecone. Compare the Middle Dutch and Dutch pijnappel, the Middle Low German pinappel, the Old High German pīnapful, the Middle High German pīnaphel, and the early Modern German pinapfel — all in the sense of “pine cone”. Compare also the post-Classical Latin pomum pini, the Old French pume de pin, the Middle French and French pomme de pin and Spanish piña.
etymonline
pineapple (n.)
late 14c., pin-appel, "pine cone," from pine (n.) + apple. The reference to the fruit of the tropical plant (from resemblance of shape) is recorded by 1660s, and pine-cone emerged 1690s to replace pineapple in its original sense except in dialect. For "pine-cone," Old English also used pinhnyte "pine nut." Pine-apple also was used in a late 14c. Biblical translation for "pomegranate."