Foxconn earnings rise thanks to popularity of the iPhone 6