| Dec | JAN | Feb |
| 28 | ||
| 2021 | 2022 | 2023 |
COLLECTED BY
Collection: Common Crawl
$ xcode-select --install
ios-sim and ios-deploy are utilities that deploy apps to the iOS simulator and iOS devices during development. They can be installed globally with npm.
$ npm install -g ios-sim
$ brew install ios-deploy
$ ionic capacitor add ios
For Cordova, run the following:
$ ionic cordova prepare ios
Set the Package ID.
For Capacitor, open the capacitor.config.json file and modify the appId property.
For Cordova, open the config.xml file and modify the idattribute of the root element, <widget>. See the Cordova documentation for more information.
Open the project in Xcode.
For Capacitor, run the following to open the app in Xcode:
$ ionic capacitor open ios
For Cordova, open Xcode. Use File » Open and locate the app. Open the app's platforms/ios directory.
InProject navigator, select the project root to open the project editor. Under the Identity section, verify that the Package ID that was set matches the Bundle Identifier.
In the same project editor, under the Signing section, ensure Automatically manage signing is enabled. Then, select a Development Team. Given a Development Team, Xcode will attempt to automatically prepare provisioning and signing.
$ ionic capacitor copy ios
For Cordova, run the following:
$ ionic cordova prepare ios
In Xcode, select a target simulator or device and click the play button.
ionic serve, to provide live-reload functionality.
With live-reload, changes made to the app's source files trigger a rebuild of web assets and the changes are reflected on the simulator or device without having to deploy again.
--external (or--host=0.0.0.0) to bind to external addresses.
$ ionic capacitor run ios -l --external
$ ionic cordova run ios -l --external
Edit this page
Previous
« Scaffolding
Next
Developing for Android »