从Ionic 3项目中删除iOS平台后,App仅在设备上显示空白屏幕。从应用程序正常工作到崩溃为止,我都没有更改任何代码。我唯一更改的是使用以下命令删除并重新添加iOS平台:
`ionic cordova platform remove ios`
成功了,然后:
`ionic cordova platform add ios`
此后,该应用将不再起作用。在控制台中,我收到此错误:
`ERROR TypeError: Object(...) is not a function
at firestore.js:28
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at NgZone.runOutsideAngular (core.js:4708)
at new AngularFirestore (firestore.js:26)
at _createClass (core.js:10943)
at _createProviderInstance$1 (core.js:10907)
at resolveNgModuleDep (core.js:10892)
at _createClass (core.js:10937)
at _createProviderInstance$1 (core.js:10907)`
如果我从XCODE在iPhone上运行应用程序,则会出现此错误:
`ERROR TypeError: Object(__WEBPACK_IMPORTED_MODULE_1_rxjs__["of"]) is not a function. (In 'Object(__WEBPACK_IMPORTED_MODULE_1_rxjs__["of"])(false)', 'Object(__WEBPACK_IMPORTED_MODULE_1_rxjs__["of"])' is an instance of Object)
2018-10-08 16:31:34.698702-0400 ptc3T[2533:1397734] ERROR: ERROR CONTEXT [object Object]`
该应用程序可以很好地加载到iphone上,但是只有空白的空白屏幕。