Apple beat market expectations in its latest results on Thursday, capping Tim Cook's final earnings report as CEO with a strong showing, although the outlook for the current quarter disappointed investors.

Apple just hit a $5 trillion market cap for the first time, but CEO Tim Cook still has plenty of concerns to address on his final earnings call at the helm.

Here's what Wall Street analysts are saying about the stock heading into earnings, and as Tim Cook gets ready to hand the reins over to John Ternus.

The company has been able to weather a market storm as more AI-focused firms have struggled.