John Ternus, Apple's senior vice president of hardware engineering, will be taking the helm as chief executive.