Apple Inc. chief executive officer Tim Cook is feeling the heat.

Eighteen months after taking over from Steve Jobs, Cook is facing rising production costs, competition from Samsung Electronics Co. and slowing growth in smartphones, threatening profits for the world’s most valuable company.