By what fraction do you think Apple's profits would drop if it had to rebuild all of its factories outside of China? By what fraction do you think China's GDP or tax revenue would drop if it kicked Apple out of China?
Even if that situation were reversed, Tim Cook answers to shareholders via a board of directors. He's legally obligated to maximize shareholder value. Who do you think the Chinese officials who want power over Taiwan answer to? What legal obligations of any kind do you think they are under?