1
votes

I installed a starter ionic tab project on mac. After building the app and running "ionic cordova run ios" command the app crashes on ios simulator and ios device. I guess its crashes as it just opens for a second and closes itselft. Not sure whats causing this to happen. The same app works if I use "ionic serve". Can someone please help us in resolving this issue?

Ionic:

Ionic CLI : 5.4.16 Ionic Framework : @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-toolkit : 3.1.0

Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : none Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

cordova-res (update available: 0.15.3) : 0.15.1 native-run (update available: 1.3.0) : 0.3.0

System:

Android SDK Tools : 24.4.1 (/Users/WashConnect/Library/Android/sdk) ios-deploy : 1.9.2 NodeJS : v13.7.0 (/usr/local/Cellar/node/13.7.0/bin/node) npm : 7.5.4 OS : macOS Mojave Xcode : Xcode 11.3.1 Build version 11C504

1
did you add any code in it or it is just new project?Najam Us Saqib
Whatever came with the starter tab project. I didn't added any extra code. It works if I use ionic serve. The 3 different tabs shows up in chrome.Mundaa Mundii

1 Answers

0
votes

As per the 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, etc.

You will find the project within the platforms/ios folder - the file will have the extension .xcodeproj. Once you have completed this process through Xcode, it should work from the command line in future.