Apple Inc. sold nearly 74.5 million iPhones during the last three months of 2014 — more than in all of its fiscal year 2011 — powering a quarter of record profit that soared past Wall Street expectations.