Tim Cook said it has been the “honor of a lifetime” to work at Apple as he steps down from the CEO role after 15 years.