Xcode and iOS

Xcode and iOS Requirements (Not Run Here)

iOS builds need a Mac. Capacitor 8 243,123 requires Xcode 26.0 10 or later and the Xcode command-line tools, and raises the deployment target to iOS 15. The steps below come from Capacitor's documentation; they were not run for this book, because no macOS machine was available (iOS Requires a Mac).

Preparing a Mac and adding the iOS platform (not run here)
xcode-select --install
npm install @capacitor/ios
npx cap add ios                              # Swift Package Manager project (default)
npx cap add ios --packagemanager Cocoapods   # CocoaPods project, only if you need it

Since Capacitor 8 the CLI creates Swift Package Manager 25,184 projects by default, so Homebrew 6,457 and CocoaPods 66,002 are no longer prerequisites. Prefer SPM for new work: the CocoaPods team plans to make its trunk Specs repository permanently read-only on 2 December 2026. Existing builds keep working, but no new pod versions can be published there after that date. Older CocoaPods projects can switch with the CLI's npx cap spm-migration-assistant command.