Apple Chief Executive Tim Cook has expressed support for globalization and said China should continue to open its economy to foreign firms.