Tim Cook will step down as Apple’s CEO later this year, the iPhone maker announced Monday, and will be replaced by Apple hardware engineering executive John Ternus.