I'm a freelance full stack developer working in Paris. ![]() If you have questions or remarks concerning this article, please feel free to share them in the comments below! Mitch We just need to specify it to Cordova! And that's done like that: $ ionic cordova run ios -l -target='iPhone-6, 10.0'Īnd that's it folks! The iPhone 6 simulator will launch instead of the default one. OK, so now we have our available simulators. You should see a list of all the simulators available like this: iPhone-4s, 9.3 There seems to be more than one command line available to do this, but hey, we only need one that's working. Well, no more laziness, sir! Let's specify this bloody target! List the available devices "Oh! So I could specify a target!" And then the simulator launches and the idea of specifying a target just vanishes until the next launch. So, as I said, when you run ionic on iOS with live reload, you run this: $ ionic cordova run ios -līut at the end of all these complicated build lines you can read: ** BUILD SUCCEEDED ** And it's quite helpful when you want to debug your iOS app using Ionic's live reload feature! But I was always too lazy to look for the answer. Have you ever wondered how to launch a specific iOS simulator directly using the ionic cli instead of launching XCode and choosing the simulator from the list? I have. ![]() Ionic, cordova, debug, ios, mobile, tips How to run your Ionic app on a specific iOS simulator using the CLI
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |