Ionic3。我可以使用ionic cordova build ios --prod来成功构建ios,但是当我运行时,它只是被飞溅挡住了,无法正常运行。
我尝试过不在结构中编码,但ionViewDidLoad却不起作用。 而且没有错误显示。
constructor(private platform: Platform, private splashScreen: SplashScreen, private storage: Storage, private loadingController: LoadingController,
private versionProvider: VersionProvider, private responseHandler: ResponseHandler, private jpushProvider: JpushProvider,
private jpush: JPush,private network:Network) {
console.log("into MyApp constructor");
this.platform.ready().then(() => {
console.log("platform is ready");
this.doStartUp();
});
}
2019-07-17 00:42:15.939282+0800 HeathyD[7552:204542] Apache Cordova native platform version 4.5.5 is starting.
2019-07-17 00:42:15.939714+0800 HeathyD[7552:204542] Multi-tasking -> Device: YES, App: YES
2019-07-17 00:42:15.972460+0800 HeathyD[7552:204542] Using UIWebView
2019-07-17 00:42:15.974225+0800 HeathyD[7552:204542] [CDVTimer][console] 0.080943ms
2019-07-17 00:42:15.974559+0800 HeathyD[7552:204542] [CDVTimer][handleopenurl] 0.113964ms
2019-07-17 00:42:15.976349+0800 HeathyD[7552:204542] [CDVTimer][intentandnavigationfilter] 1.639962ms
2019-07-17 00:42:15.976611+0800 HeathyD[7552:204542] [CDVTimer][gesturehandler] 0.138998ms
2019-07-17 00:42:15.984829+0800 HeathyD[7552:204542] [CDVTimer][splashscreen] 8.082986ms
2019-07-17 00:42:15.985599+0800 HeathyD[7552:204542] [CDVTimer][cdvcrypt] 0.633001ms
2019-07-17 00:42:15.985691+0800 HeathyD[7552:204542] [CDVTimer][TotalPluginStartup] 11.887908ms
2019-07-17 00:42:15.991941+0800 HeathyD[7552:204542]
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.1.2--build:71----------
--------------------JCore Lib Version:1.2.6--build:68----------
-----------------AppKey:1550988b8166a********----------------
----------------------------------------------------------------
2019-07-17 00:42:15.992090+0800 HeathyD[7552:204542] JPush WARNING! APNs is NOT supported on simulator
2019-07-17 00:42:16.536573+0800 HeathyD[7552:204542] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/index.html
2019-07-17 00:42:16.536855+0800 HeathyD[7552:204542] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/index.html
2019-07-17 00:42:16.537609+0800 HeathyD[7552:204542] Resetting plugins due to page load.
2019-07-17 00:42:16.561814+0800 HeathyD[7552:204542] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/index.html
2019-07-17 00:42:16.881241+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/index.html
2019-07-17 00:42:16.882821+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/cordova.js
2019-07-17 00:42:16.883863+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/build/main.css
2019-07-17 00:42:16.884888+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/assets/js/jquery.js
2019-07-17 00:42:16.885738+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/assets/js/jquery.cookie.min.js
2019-07-17 00:42:16.886635+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/build/polyfills.js
2019-07-17 00:42:16.887674+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/build/vendor.js
2019-07-17 00:42:16.888622+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/build/main.js
2019-07-17 00:42:19.808129+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/cordova_plugins.js
2019-07-17 00:42:19.859913+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js
2019-07-17 00:42:19.862152+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/plugins/cordova-plugin-screen-orientation/www/screenorientation.js
2019-07-17 00:42:19.864429+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/plugins/cordova-plugin-device/www/device.js
2019-07-17 00:42:19.866350+0800 HeathyD[7552:204678] /Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/plugins/jpush-phonegap-plugin/www/JPushPlugin.js
2019-07-17 00:42:19.891591+0800 HeathyD[7552:204542] Finished load of: file:///Users/huanghaizhou/Library/Developer/CoreSimulator/Devices/3BD5CDC9-87C9-499A-A68C-950A3929FFB1/data/Containers/Bundle/Application/4BAE4582-CDA8-4693-B240-E9F7B51C8B7E/HeathyD.app/www/index.html
2019-07-17 00:42:19.909511+0800 HeathyD[7552:204542] Ionic Native: deviceready event fired after 2523 ms
上面的所有日志。然后卡住了。
我想使用--prod构建ios并成功运行。