Cook will turn the title over to John Ternus, Apple's head of hardware engineering, on September 1, while remaining involved as executive chairman.