Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ios): Add update guide for Capacitor 2.0 beta #2571

Merged
merged 1 commit into from
Mar 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)