John Ternus, 50, will take over as Apple chief executive in September, with Tim Cook becoming executive chairman of the iPhone maker's board of directors.