Ios Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Capacitor features a native iOS runtime that enables developers to communicate between JavaScript and Native Swift or Objective-C code.
Capacitor iOS apps are configured and managed with Xcode and .
iOS 13+ is supported. Xcode 13+ is required (see ). Capacitor uses , not the deprecated .
First, install the @capacitor/ios
package.
Copy
Then, add the iOS platform.
Copy
To open the project in Xcode, run:
Copy
Alternatively, you can open Xcode manually by running:
Copy
You can either run your app on the command-line or with Xcode.
To run the project on a device or simulator, run:
Copy
In Xcode, first select the device or simulator and then click the play button to run your app.
You are now ready to continue developing and building your app. Use the various APIs available, Capacitor or Cordova plugins, or custom native code to build out the rest of your app.
Follow these guides for more information on each topic:
The command will prompt you to select a target. .
If you encountered any issues while getting started, you can consult the . Feel free to if you need help.