McCormick & Co. beat earnings expectations in the third quarter while continuing to struggle with supply chain challenges, the Hunt Valley-based spice maker said Thursday.