A simple weather mobile app which uses data from the WeatherAPI. Supported on both Android and iOS. Android builds can be found here. See instructions below for building the app for iOS.
iOS binaries must be built on macOS with Xcode. You can develop the web app on any OS; only the native build and App Store upload require a Mac.
- macOS with Xcode installed (includes the iOS SDK and Simulator).
- Apple Developer Program membership if you plan to distribute via TestFlight or the App Store, or to run on a physical device with full provisioning.
-
Install dependencies:
npm install
-
If the
ios/folder is missing (for example on a fresh clone), add the iOS platform:npx cap add ios
-
Produce the static web bundle Capacitor embeds in the app:
npm run build
-
Copy web assets and plugin changes into the native project:
npx cap sync ios
-
Open the iOS project in Xcode:
npx cap open ios
- Select a Simulator or a connected iPhone as the run destination.
- In the project settings, set your Signing & Capabilities team and ensure the Bundle Identifier matches (or updates) the
appIdincapacitor.config.tsif you change it. - Run the app from Xcode to test locally.
- For TestFlight or the App Store: Product → Archive, then use the Organizer to Distribute App and upload to App Store Connect.
Repeat npm run build and npx cap sync ios whenever you change the web app or Capacitor plugins, then rebuild in Xcode.
More detail: Capacitor iOS documentation and Development workflow.