Instrument Flight Rules (IFR): How I Shipped an 18-Language Flutter App to the Apple App Store With No Mac and No iPhone

From OpenSSL on Windows to a Swift H.264 framebuffer recorder running on physical iPhones in Firebase Test Lab — shipping production iOS software with zero Apple hardware on the desk at $0.00 cloud FinOps.

Instrument Flight Rules (IFR): 18-Language Flutter App on the Apple App Store with No Mac and No iPhone
Engineering field manual behind pwE (Pray With Me) on the Apple App Store (id6836338784) — built 100% on WindowsNo Mac · No iPhone · 18 Languages · $0.00 FinOps

1. Visual Flight Rules (VFR) vs. Instrument Flight Rules (IFR) in iOS Engineering

In aviation, there is a bright line between VFR (Visual Flight Rules) — looking out the cockpit windshield and correcting by sight — and IFR (Instrument Flight Rules), flying through solid clouds trusting nothing but your calibrated instrument panel.

Developers who build iOS apps with a MacBook and a physical iPhone on their desk fly VFR: hit Cmd+R in Xcode, check the Dynamic Island safe area in 15 seconds, drag a localization file into the sidebar, click Archive, and upload.

This week, we launched pwE (Pray With Me) globally on the Apple App Store (id6836338784) across 18 languages — 100% from a Windows laptop, owning neither a Mac nor a physical iPhone, while holding $0.00 cloud FinOps.

0 Mac · 0 iPhone100% built, signed & shipped from Windows
~25 sZero-Flutter XCUITest Harness via xcodegen
18 Languages1,031 .arb keys + 18 .lproj in pbxproj
$0.00Cloud FinOps & on-demand macOS CI

Without local Apple hardware, visual flight is impossible — and every GitHub Actions macos-latest build carries a 10x billing multiplier: one careless mistake at minute 14 burns 140 free-tier minutes. There is zero room for "let's push and see." That turns Kent Beck's Trust Factory mindset into pure engineering survival.

Below is our complete IFR flight manual — every command, every signing trap, the zip -r -y rule, our 25-second XCUITest Harness injecting a signed .ipa onto physical cloud iPhones, and the Swift H.264 recorder we wrote from scratch to deliver Apple App Review's walkthrough video.

1. LOCAL WINDOWSOpenSSL & DartCSR → .p12 + 1,838 tests2. CI macOS (10x)Ephemeral KeychainPlistBuddy + signed .ipa3A. BROWSER PREVIEWAppetize.io (zip -r -y)3B. PHYSICAL IPHONETest Lab + XCUITest (25s)H.264 AVAssetWriter .mp44. APP STORE & 360° MONITORxcrun altool (.p8) → ProductionRemote Config app.id + iTunes RSS
End-to-end Zero-Mac / Zero-iPhone pipeline running in production for pwE ($0.00 cloud FinOps).

2. Apple Certificates Without Keychain Access: OpenSSL on Windows & Ephemeral CI Keychain

The very first wall you hit on Windows appears before a single line of Swift or CocoaPods runs: Apple's documentation instructs you to open macOS Keychain Access to generate a Certificate Signing Request (CSR) and export a .p12 distribution certificate.

Under the hood, however, it is standard X.509/PKCS#12 cryptography — and OpenSSL on Windows completes the entire signing ceremony in four deterministic commands without ever touching a Mac:

bash
# 1. Generate RSA-2048 private key + CSR on Windows (replaces macOS Keychain Access)
openssl genrsa -out ios_distribution.key 2048
openssl req -new -key ios_distribution.key -out CertificateSigningRequest.certSigningRequest \
  -subj "/emailAddress=dev@example.dev/CN=Apple Distribution/C=US"

# 2. Upload .certSigningRequest to Apple Developer Portal and download ios_distribution.cer
# 3. Convert Apple DER .cer to PEM and export password-protected .p12
#    (On OpenSSL 3.x + older macOS Keychain, pass -legacy if security import rejects the .p12)
openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.pem -outform PEM
openssl pkcs12 -export -inkey ios_distribution.key -in ios_distribution.pem \
  -out apple_distribution.p12 -passout pass:YOUR_STRONG_PASSWORD

Once apple_distribution.p12 and the .mobileprovision file are stored as Base64 GitHub Secrets, the second challenge is taming GitHub Actions' 10x macOS billing multiplier. Our ios-release-testflight.yml workflow enforces three strict rules:

  • Strictly on-demand (workflow_dispatch): 100% of our 1,838+ unit, BLoC, and widget tests run locally on Windows or on 1x Linux runners. macOS only wakes up for a verified release.
  • Aggressive CocoaPods & SwiftPM caching: we cache ~/Library/Caches/CocoaPods, ~/Library/Caches/org.swift.swiftpm, and ios/Pods keyed by ios/Podfile + pubspec.lock, saving several minutes (multiplied by 10x!) on every release.
  • Ephemeral Keychain & runtime Provisioning Profile parsing: the script creates a temporary Keychain inside $RUNNER_TEMP, explicitly grants access to codesign: (without that line, headless CI hangs forever waiting on an invisible GUI password modal!), extracts UUID and Name via security cms -D + PlistBuddy, generates Local.xcconfig and ExportOptions.plist on the fly, builds the obfuscated .ipa, and uploads directly to TestFlight via xcrun altool --upload-app using an App Store Connect .p8 key:
bash
# .github/workflows/ios-release-testflight.yml (production excerpt)
security create-keychain -p "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
security unlock-keychain -p "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"
security import $RUNNER_TEMP/certificate.p12 -P "$CLEAN_P12_PASS" -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
security list-keychains -d user -s "$KEYCHAIN_PATH" login.keychain
# Critical in headless CI: prevents silent hangs waiting for a GUI Keychain prompt
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"

security cms -D -i $RUNNER_TEMP/profile.mobileprovision > $RUNNER_TEMP/profile.plist
PROFILE_UUID=$(/usr/libexec/PlistBuddy -c "Print UUID" $RUNNER_TEMP/profile.plist)
PROFILE_NAME=$(/usr/libexec/PlistBuddy -c "Print Name" $RUNNER_TEMP/profile.plist)
mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles"
cp $RUNNER_TEMP/profile.mobileprovision "$HOME/Library/MobileDevice/Provisioning Profiles/$PROFILE_UUID.mobileprovision"

flutter build ipa --release --obfuscate --split-debug-info=build/ios/symbols \
  --export-options-plist=ios/ExportOptions.plist

xcrun altool --upload-app --type ios --file "$IPA_FILE" \
  --apiKey "$CLEAN_KEY_ID" --apiIssuer "$CLEAN_ISSUER_ID"

3. Seeing and Tapping iOS Without an iPhone: Appetize.io & The zip -r -y Trap

Building an .ipa solves shipping — but how do you visually verify that Dynamic Island doesn't clip your AppBar, that the iOS keyboard pushes your text editor cleanly, or that Cupertino gestures feel right without an iPhone in hand?

Our first visual feedback layer lives in ios-simulator-appetize.yml: the runner builds flutter build ios --simulator --debug --no-codesign (which doesn't even require a paid signing certificate!) and pushes the zipped app bundle via REST API to Appetize.io, giving us an interactive virtual iPhone right inside a Windows browser tab.


4. The Engineering Climax: Physical Cloud iPhones in 25s & A Swift H.264 Framebuffer Recorder

Browser simulators catch layout issues quickly, but they cannot replace real Apple silicon hardware (physical Metal/Impeller rendering, native permission sheets, StoreKit, and the exact walkthrough Apple App Review runs). Testing on physical iPhones in Firebase Test Lab surfaced two brutal roadblocks:

4.1. Zero-Flutter XCUITest Harness (~25 seconds instead of 15 minutes)

Re-running a full flutter build every time you adjust a line in your Swift UI walkthrough (ReviewWalkthroughUITests.swift) will evaporate your free-tier 10x macOS quota in two afternoons.

In ios-xctest-review-bundle.yml, we completely decoupled the Flutter binary from the XCUITest runner:

  1. Pin the exact Xcode version supported by Firebase Test Lab (sudo xcode-select -s /Applications/Xcode_26.2.app/Contents/Developer);
  2. Use xcodegen to generate a minimal Xcode project containing a 3-line StubApp.swift + our ReviewWalkthroughUITests.swift and run xcodebuild build-for-testing in roughly 25 seconds (zero Flutter, zero Dart, zero CocoaPods!);
  3. Download the pre-compiled, signed .ipa artifact from our release workflow via gh run download, unpack the real Runner.app using ditto, and swap it straight over the stub inside DerivedData;
  4. Re-sign ReviewWalkthroughUITests-Runner.app and its embedded .dylib/.xctest binaries with codesign --force, cryptographically audit both bundles using codesign --verify --deep --strict, and archive .xctestrun + Release-iphoneos with zip -r -y ready for Firebase Test Lab!
bash
# .github/workflows/ios-xctest-review-bundle.yml (Injecting the signed .ipa into the 25s Harness)
gh run download "$IPA_RUN_ID" --name pwe-ios-release-ipa --dir "$IPA_DL_DIR"
ditto -x -k "$IPA_PATH" "$IPA_UNPACK"

# Swap the 3-line StubApp with our real pre-signed Runner.app
rm -rf "$PRODUCTS_DIR/Release-iphoneos/Runner.app"
ditto "$IPA_UNPACK/Payload/Runner.app" "$PRODUCTS_DIR/Release-iphoneos/Runner.app"

# Sign XCTRunner and verify cryptographic integrity before spending Test Lab quota
codesign --force --sign "Apple Distribution" --entitlements "$XCT_ENTITLEMENTS" "$XCT_RUNNER_APP"
codesign --verify --deep --strict --verbose=2 "$PRODUCTS_DIR/Release-iphoneos/Runner.app"
codesign --verify --deep --strict --verbose=2 "$XCT_RUNNER_APP"
zip -r -y "$RUNNER_TEMP/pwe_ios_xctest_bundle.zip" Release-iphoneos "$XCTESTRUN_BASENAME"

4.2. The App Review "Final Boss": When Firebase Test Lab Stops Recording Video on iOS 18+/26+

When it came time to submit the physical-device video walkthrough requested by Apple App Review, we hit an official Firebase Test Lab limitation on iOS 18+ and iOS 26+: the device farm's external USB screen recorder does not generate video.mp4.

With no physical iPhone on our desk and no USB video from Test Lab, how do you produce undeniable video proof for Apple?

Our solution was building PhysicalScreenMp4Recorder directly inside ReviewWalkthroughUITests.swift: as XCUITest drives our app across the physical iPhone in Firebase Test Lab, it grabs frames directly from the framebuffer (XCUIScreen.main.screenshot()), encodes real-time H.264 (.mp4) video using Apple's native AVAssetWriter right on the cloud iPhone hardware, and attaches the finished MP4 as an XCTAttachment inside the .xcresult bundle!

swift
// ios/ReviewWalkthroughUITests/ReviewWalkthroughUITests.swift
// Bypasses missing USB video.mp4 in Firebase Test Lab on iOS 18+/26+
final class PhysicalScreenMp4Recorder {
    private var writer: AVAssetWriter?
    private var videoInput: AVAssetWriterInput?
    private var adaptor: AVAssetWriterInputPixelBufferAdaptor?
    private var lastTicks: Int64 = 0
    private var frameCount = 0

    @discardableResult
    func captureFrame(at presentationTicks: Int64) -> UIImage? {
        let uiImage = XCUIScreen.main.screenshot().image
        guard
            let adaptor,
            let videoInput,
            videoInput.isReadyForMoreMediaData,
            let pb = makePixelBuffer(from: uiImage, adaptor: adaptor)
        else { return uiImage }

        let cmTime = CMTime(value: presentationTicks, timescale: 600)
        if adaptor.append(pb, withPresentationTime: cmTime) {
            lastTicks = presentationTicks
            frameCount += 1
        }
        return uiImage
    }
}

The payoff: a crisp H.264 MP4 recorded directly off physical iPhone hardware in the cloud, downloaded straight onto our Windows laptop and attached to App Store Connect — without ever buying a single Lightning or USB-C cable.


5. Three Post-Approval Lessons From the First 48 Hours (When You Can't Open Xcode)

Approval landed: READY_FOR_SALE! Yet shipping without a Mac or iPhone quickly teaches you that the subtlest engineering work happens in the first 48 hours of production:

5.1. project.pbxproj Surgery Without Xcode GUI: 18 .arb Files ≠ 18 App Store Languages

In Flutter, we had 1,031 localized keys across 18 .arb catalogs verified at 100% parity by automated tests. The App Store storefront, however, ignores .arb files: to display all 18 languages on the store page and comply with Guideline 2.3.8 (strict match between storefront title and CFBundleDisplayName), we had to create and wire all 18 *.lproj/InfoPlist.strings folders directly into a PBXVariantGroup inside project.pbxproj (edited as structured text on Windows!), keep PrivacyInfo.xcprivacy 100% consistent, and ship Safari's Smart App Banner (<meta name="apple-itunes-app" content="app-id=6836338784">) across all 18 landing pages.

5.2. Cross-Platform Version Skew (Android 258 vs. iOS 242): Fixed in 10 Minutes With Zero Rebuild

While Apple's initial review held iOS at build 242 (1.0.66), Android kept shipping on Google Play up to build 258 (1.0.82). The moment iOS went live, our single global Firebase Remote Config parameter (recommended_build_number = "258") evaluated 242 < 258 on brand-new iOS installs and surfaced a false update prompt.

Without a local Mac, resubmitting a binary would have cost days. Instead, we resolved production in 10 minutes with zero iOS rebuild by isolating platforms via app.id in remoteconfig.template.json (and hardening our pwe_release.dart script so Android releases never overwrite the iOS conditional value — shown below in its live production snapshot tracking Android 265 vs. iOS 261):

json
{
  "conditions": [{
    "name": "ios_app_store",
    "expression": "app.id == '1:62274389950:ios:82650571f367e9e27a5bef'"
  }],
  "parameters": {
    "recommended_build_number": {
      "defaultValue": { "value": "265" },
      "conditionalValues": { "ios_app_store": { "value": "261" } }
    }
  }
}

5.3. Your Eyes Without an iPhone in Hand: iTunes Lookup Cache Lag & Zero-Secret RSS Reviews

Even after READY_FOR_SALE, Apple's public itunes.apple.com/lookup?bundleId=... endpoint kept returning resultCount: 0 in our 360° Production Monitor due to index propagation lag on bundleId. The permanent fix paired an authoritative Track ID fallback (?id=6836338784 with a strict bundleId guard) across BR and US storefronts with Zero-Secret review ingestion from Apple's public JSON RSS feed — safely handling Apple's classic quirk where a single review arrives as a JSON Map instead of a List.


6. The IFR Flight Manual (Practical Summary)

Not owning a Mac or an iPhone is no longer an insurmountable wall for independent Flutter engineers — it simply replaces visual improvisation with disciplined systems engineering:

  1. Generate CSR and .p12 via OpenSSL on Windows and sign on GitHub Actions using an ephemeral Keychain + security set-key-partition-list + PlistBuddy.
  2. Respect the 10x macOS multiplier: keep 100% of unit/widget tests on Windows/Linux, trigger macOS only via workflow_dispatch, and cache CocoaPods/SPM aggressively.
  3. Always pass zip -r -y when archiving Runner.app for Appetize.io or Firebase Test Lab so framework symlinks stay intact.
  4. Decouple XCUITest from Flutter builds: a 25-second xcodegen harness injecting your pre-signed .ipa (paired with an AVAssetWriter H.264 recorder) gives you real physical-iPhone verification at a fraction of the CI budget.
  5. Instrument life after READY_FOR_SALE: wire every *.lproj in PBXVariantGroup, isolate Remote Config by app.id, and monitor your listing with Track ID fallback + Apple RSS.
LIVE GLOBALLY • BUILT 100% ON WINDOWS
See the Live App on the Apple App Store & Audit the Code

Try pwE (Pray With Me) across 18 languages on the Apple App Store and Google Play — built, signed, and verified with zero Mac and zero iPhone — or explore our public Architecture Showcase:

About the Author · JHH Solutions

Elvis Freitas Lopes Herllain

Software engineering and solutions architecture professional with 10+ years in mission-critical enterprise systems (SRE / L3 RCA) and, in parallel, an independent developer of original products under the JHH Solutions brand.