The company logged strong iPhone growth in places such as India, Indonesia, Latin America and the Middle East, a sign of resilience as the tech giant continues to face economic uncertainty.