Capacitor iOSプロジェクトのアップデート

アプリで使用しているCapacitorのバージョンを更新したり、iOSコードベース内でCapacitorとやり取りする新しい方法を使用して(新しいiOS APIの変更など)、CapacitorのiOSアプリを更新する必要がある場合があります。

Updating Capacitor iOS Library

To update the version of @capacitor/ios used in your app, just npm install latest version:

npm install @capacitor/ios@latest

Then sync the native project

npx cap sync ios

Updating iOS Project

To update the base structure of your Xcode project, view the ios-template project in the Capacitor repo, under the tag corresponding to the latest stable release of Capacitor. The core project is kept simple on purpose: it shouldn't take much time to see what is different from the core project and your project.

In particular, AppDelegate.swift should be checked regularly for possible changes to iOS events.

From 1.0.0 to 1.1.0

Recommended change:

  • Update .gitignore file inside ios folder with this changes