Tim Cook’s replacement must lead iPhone-maker through industry shift