Apple earnings driven by iPhone sales