OTOH, pissing off China could mean huge losses for Apple, and that makes it a different story altogether.
Companies (for profit or not) answer to their major stockholders. Even politics in a (democratic) country (EU or U.S. or X, place possibly your country where X) follow a similar mechanism: politicians conform with the wishes of the major coalitions that will keep them in power. Sure one can leave footprints of their ideals, but after some threshold they are intrinsically bound by their power base (usually lobbying).
They could conceivably diversify their manufacturing base, but that's a longer term strategy. Given Apple's reputation for control, it's conceivable that they're not as dependent on the Shenzhen ecosystem as your typical manufacturer. It doesn't have to be domestic US production, just not China.
http://www.businessinsider.com/apple-ceo-tim-cook-companies-...
Ultimately of course, these things do have a return, even just in PR. How Apple operates in China has some effect on its US sales and market position... so I guess Tim has to play a careful game.