Apple needs the new iPhone X to be a hit in China, where its market share has slipped by more than half in recent years. But it is up against domestic rivals offering advanced technology, local adaptations and far lower prices.