Skip to content

Commit

Permalink
docs(ios): Add update guide for Capacitor 2.0 beta (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 13, 2020
1 parent 00d313f commit ca0baf7
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion site/docs-md/ios/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,30 @@ In particular, [AppDelegate.swift](https://github.com/ionic-team/capacitor/blob/

Recommended change:

* Update `.gitignore` file inside `ios` folder with [this changes](https://github.com/ionic-team/capacitor/commit/91941975ea5fe5389e0b09bb8331d5cb16ea6a78#diff-ea346566a7f09b5e88ed28d3d6362ec3)
* Update `.gitignore` file inside `ios` folder with [this changes](https://github.com/ionic-team/capacitor/commit/91941975ea5fe5389e0b09bb8331d5cb16ea6a78#diff-ea346566a7f09b5e88ed28d3d6362ec3)

### From <= 1.5.1 to 2.0.0-beta.0

Since Capacitor 2.0 is still beta, install it using `next` tag

```bash
npm install @capacitor/cli@next
npm install @capacitor/core@next
npm install @capacitor/ios@next
npx cap sync ios
```

Recommended change:

* Update native project to Swift 5

Capacitor 2.0 uses Swift 5, it's recommended to update your native project to also use Swift 5.
To do so, from Xcode click `Edit -> Convert -> To Current Swift Syntax`.

App.app will appear selected, click `Next` button.

Then a message will say `No source changes necessary`.

Finally, click the `Update` button.

For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.0)

0 comments on commit ca0baf7

Please sign in to comment.