HARRISBURG, PA—Foxconn Technology Group, the Taipei-based maker of Apple Inc.’s iPhone, plans to invest $40 million to build a high-tech assembly plant here. MORE