Apple CEO Tim Cook warned Trump that China tariffs would boost its main rival Samsung, in a major reversal