When John Ternus becomes Apple’s chief executive on Tuesday, he inherits a company that looks, on paper, unbeatable. Apple is ...