Apple announced John Ternus as its new chief executive officer, effective September 1. Tim Cook will take the role of executive chairman, ending his nearly 15-year run at the company.