As of September, it was clearer than ever that production problems meant Apple wouldn’t have enough iPhone Xs in time for the US holidays. The challenge was how to make the sophisticated phone — with advanced features such as facial recognition — in large enough numbers.