Apple lost its No. 1 spot in China as domestic rivals took advantage of the iPhone maker’s lack of artificial intelligence ...