In case you had started to doubt it: People still love the iPhone.

Apple announced on Tuesday that it sold 78.2 million iPhones in its first fiscal quarter — a record for any single quarter in the company’s history. The tech giant had concerned analysts with a few weak quarters that have raised doubts about the iPhone’s staying power. Apple returned to growth for the first time in three quarters.

Though its profits slipped 2.6 percent from the same time last year, it touted a record-breaking $78.4 billion in revenue. Both Apple’s profit and revenue beat analysts expectations.

“We’re thrilled to report that our holiday quarter results generated Apple’s highest quarterly revenue ever, and broke multiple records along the way. We sold more iPhones than ever before and set all-time revenue records for iPhone, Services, Mac and Apple Watch,” said Tim Cook, Apple’s chief executive.

The iPhone was the main force behind Apple’s revenue record. Sales of the smartphones made up 69 percent of Apple’s revenue in its first quarter, and were up 5 percent from the same time last year.

Consumers still turned out to buy the iPhone 7 and iPhone 7 Plus, despite the fact that Apple didn’t deliver as much of an update.