The technology giant’s chief executive Tim Cook has faced criticism from investors.