Guide · Capacitor · iOS

    Capacitor iOS build without a Mac: signed .ipa from GitHub

    Nathan Claiborne
    Capacitor is the bridge: your existing web app keeps running in a WKWebView, but it ships as a real native iOS app with its own bundle ID, Info.plist, native plugins, and App Store identity. This guide covers the full conversion, from npx cap add ios to a signed, store-ready .ipa.

    What 'native' means here

    A Capacitor iOS app is a real Xcode project (ios/App/App.xcworkspace). The web bundle lives inside the app, served by WKWebView. Native plugins (camera, push, biometrics, in-app purchase) call into Swift/Obj-C through Capacitor's bridge. To Apple's reviewers, it is indistinguishable from a Swift app.

    Step 1: Add the iOS platform

    npm i @capacitor/core @capacitor/ios
    npm i -D @capacitor/cli
    # capacitor.config.ts already exists? skip init
    npx cap init "My App" com.acme.myapp --web-dir=dist
    npm run build
    npx cap add ios
    npx cap sync ios

    Step 2: Configure the iOS shell

    Open ios/App/App/Info.plist and add the entries each plugin needs:

    • NSCameraUsageDescription: Camera plugin
    • NSPhotoLibraryUsageDescription: Filesystem / image picker
    • NSLocationWhenInUseUsageDescription: Geolocation
    • NSFaceIDUsageDescription: Biometric auth
    • ITSAppUsesNonExemptEncryption=false: if you don't use custom crypto

    Set the bundle ID, display name, and version in Xcode (or directly in the project.pbxproj). Bump the build number on every upload.

    Step 3: Add native plugins

    Install the plugins your app needs and re-sync:

    npm i @capacitor/camera @capacitor/push-notifications @capacitor/preferences
    npx cap sync ios

    Use the plugin from your existing React/Vue/Svelte code. The API is the same on every platform:

    import { Camera, CameraResultType } from "@capacitor/camera";
    const photo = await Camera.getPhoto({ resultType: CameraResultType.Uri });

    Step 4: App icons and splash screen

    Capacitor's default icon will fail review. Generate the full asset set from a single 1024×1024 source:

    npm i -D @capacitor/assets
    npx capacitor-assets generate --ios

    Step 5: Code-sign and build a .ipa

    You need a distribution .p12, a provisioning profile, and an ExportOptions.plist. Build on a Mac or a GitHub macOS runner:

    cd ios/App
    xcodebuild -workspace App.xcworkspace -scheme App -configuration Release \
      -archivePath build/App.xcarchive archive
    xcodebuild -exportArchive -archivePath build/App.xcarchive \
      -exportOptionsPlist ExportOptions.plist -exportPath build/

    Full GitHub Actions workflow: Build a signed .ipa from GitHub without a Mac.

    Step 6: Live reload during development

    For fast iteration on a real device, point Capacitor at your dev server:

    // capacitor.config.ts
    server: { url: "http://192.168.1.50:8080", cleartext: true }

    Re-run npx cap sync ios and the WebView will load your laptop's Vite server. Remove before shipping.

    Build without a Mac using Corenna

    If you don't have a Mac, Corenna writes a GitHub Actions workflow into your repo that runs the Capacitor and Xcode steps on a GitHub-hosted macOS runner. You connect GitHub, upload your .p12 and provisioning profile, and start an iOS build. The .ipa is then yours to upload to TestFlight. iPhone builds on Corenna are in beta: no one has finished a signed one yet, so check the first result before you rely on it.

    Keep reading