Hon Hai Precision Industry Co.’s quarterly earnings missed estimates as weak Chinese iPhone sales weighed and it invested more on AI server production.