Apple partners with Alibaba to bring AI to iPhones in China, aiming to regain market share amid Huawei’s dominance.