The iPhone maker warned that supply constraints and slowing growth would weigh on results in the current quarter.