Apple’s CEO Tim Cook apologized to the Chinese government after the company was criticized for the warranties on its products sold in China.