How to deploy a Lovable app to the App Store (2026)
.p12 certificate, a provisioning profile, and a signed .ipa. This guide walks the full path from a Lovable preview to TestFlight and the App Store, and shows where Corenna takes the Xcode and Mac work off you.What you'll need before you start
- A Lovable project (exported to GitHub).
- An Apple Developer Program membership ($99/yr).
- An App Store Connect app record with a bundle ID (e.g.
com.acme.myapp). - A distribution
.p12and an App Store provisioning profile. See iOS code signing explained. - No Mac needed if you use GitHub macOS runners or Corenna.
Step 1: Export Lovable to GitHub
In Lovable, add a GitHub connection under Workspace settings → Git → GitHub, then click Connect in the project's GitHub settings. Lovable creates the repository and keeps it in sync. Clone it locally, or skip that and let Corenna build it on GitHub.
Step 2: Wrap the web app with Capacitor
Capacitor turns the Vite build into a native iOS shell. Install and initialize:
npm i @capacitor/core @capacitor/ios
npm i -D @capacitor/cli
npx cap init "My App" com.acme.myapp --web-dir=dist
npm run build
npx cap add ios
npx cap sync iosCommit the ios/ folder and capacitor.config.ts.
These commands fit Lovable projects created before May 13, 2026, which are Vite apps that build to dist/. Newer projects are TanStack Start apps: their build writes dist/client/ and dist/server/ and no index.html, so --web-dir=dist gives you an empty app. They need a client-only build in TanStack Start's SPA mode, and any server functions need your published site as a backend. Corenna does that part by itself; the Lovable TanStack Start guide explains it.
Step 3: Build a signed .ipa on GitHub Actions
Add .github/workflows/ios.yml:
name: iOS Release
on: { workflow_dispatch: {} }
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- run: npm ci && npm run build
- run: npx cap sync ios
- name: Import signing
env:
P12_B64: ${{ secrets.IOS_P12_B64 }}
P12_PASS: ${{ secrets.IOS_P12_PASSWORD }}
PROFILE_B64: ${{ secrets.IOS_PROFILE_B64 }}
run: |
echo "$P12_B64" | base64 -d > cert.p12
security create-keychain -p "" build.keychain
security import cert.p12 -k build.keychain -P "$P12_PASS" -T /usr/bin/codesign
security list-keychains -s build.keychain
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
echo "$PROFILE_B64" | base64 -d > ~/Library/MobileDevice/Provisioning\ Profiles/profile.mobileprovision
- run: |
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/
- uses: actions/upload-artifact@v4
with: { name: App.ipa, path: ios/App/build/*.ipa }Step 4: Upload to TestFlight
Add an App Store Connect API key (Issuer ID, Key ID, .p8) as secrets and append:
- name: Upload to TestFlight
run: |
xcrun altool --upload-app -f ios/App/build/App.ipa -t ios \
--apiKey $ASC_KEY_ID --apiIssuer $ASC_ISSUERWithin 5–15 minutes the build appears in TestFlight for internal testers.
Step 5: Submit to the App Store
In App Store Connect, fill in screenshots, age rating, privacy answers, and description. Pick the TestFlight build, hit Submit for Review. Review usually clears in 24–48 hours.
Or let Corenna write the workflow
Corenna writes the workflow file and does the Capacitor setup for you: connect your GitHub repo, upload your .p12 and provisioning profile once, and start an iOS build. The xcodebuild and keychain commands run on GitHub's Mac machines, so you need no Mac. iPhone builds on Corenna are in beta, and no one has finished a signed one yet, so run a free sandbox build first: it does the same build and signing without keeping the file. Corenna doesn't upload to TestFlight for you: download the .ipa and upload it to App Store Connect yourself, from a Mac with Transporter or from Windows or Linux with Apple's command-line tool (the iOS-on-Windows guide shows how).
Common gotchas
- Bundle ID mismatch: must match the provisioning profile exactly.
- Missing usage strings: add
NSCameraUsageDescriptionetc. inInfo.plistfor any Capacitor plugin that needs them. - Encryption export compliance: set
ITSAppUsesNonExemptEncryption=falseif you don't use custom crypto. - Icons & launch screen: Capacitor's defaults will fail review. Generate via
@capacitor/assets.