Foxconn upgraded its facilities to help make sophisticated smartphones, according to a person familiar with its investment. The iPhone XR is now being made in India for the local market, according to phone retailers and others familiar with its plans.