新选项卡 ionic starter 项目在 ios 模拟器和 ios 设备上简单崩溃的问题。但如果使用 ionic serve 则有效

Issue where newly tabs ionic starter project simply crashes on ios simulator and ios device. But works if used ionic serve

我在 mac 上安装了一个初始 ionic tab 项目。在构建应用程序和 运行ning“ionic cordova 运行 ios” 命令后,应用程序在 ios 模拟器和 ios 设备上崩溃。我猜它会崩溃,因为它只打开一秒钟然后自行关闭。不确定是什么导致了这种情况发生。如果我使用“ionic serve”,同样的应用程序可以工作。有人可以帮我们解决这个问题吗?

离子:

离子 CLI:5.4.16 离子框架:@ionic/angular 5.5.4 @angular-devkit/build-angular:0.1101.4 @angular-devkit/schematics:11.1.4 @angular/cli:11.1.4 @ionic/angular-工具包:3.1.0

科尔多瓦:

科尔多瓦 CLI:10.0.0 科尔多瓦平台:none Cordova 插件:cordova-plugin-ionic-keyboard 2.2.0,cordova-plugin-ionic-webview 4.2.1,(和其他 4 个插件)

效用:

cordova-res(可用更新:0.15.3):0.15.1 native-运行(可用更新:1.3.0):0.3.0

系统:

Android SDK 工具:24.4.1 (/Users/WashConnect/Library/Android/sdk) ios-部署:1.9.2 NodeJS:v13.7.0 (/usr/local/Cellar/node/13.7.0/bin/node) npm:7.5.4 OS : macOS 莫哈韦 Xcode : Xcode 11.3.1 构建版本 11C504

根据Ionic instructions for iOS Development, you should first open the project in Xcode and run from there (rather than using the CLI). This will allow you to fix any signing issues, add a development team to your app

您将在 platforms/ios 文件夹中找到该项目 - 文件的扩展名为 .xcodeproj。通过 Xcode 完成此过程后,以后应该可以从命令行运行。