The iOS app was not working because there was a plugin missing:git
https://github.com/apache/cordova-plugin-network-information/blob/master/doc/index.mdgithub
添加cordova-plugin-network-information,后build后问题解决apache