Foxconn will be assembling the most expensive models, such as devices in the flagship iPhone X family.