Sales of iPhones rose 21.7% to nearly $57 billion, while overall revenue jumped to $111.2 billion. Apple CEO Tim Cook, who will transition to role as executive chairman on Sept. 1, said the company was experiencing shortages of its MacBook and iPhones.