iOS App Store Pre-Flight Rejection Auditor
Overview
App Store Review rejections often stem from statically detectable mistakes in Info.plist, StoreKit purchase flows, privacy manifests, or placeholder UI left behind by rapid iteration. This skill runs a 12-rule read-only check on Swift/SwiftUI repositories before archiving and uploading a build to App Store Connect.
When to Use
- Reviewing an iOS/macOS Swift or SwiftUI repository immediately before TestFlight or App Store submission.
- Triaging an App Review rejection under Guidelines 2.1, 2.3, 3.1.1, 4.8, or 5.1.1.
- Do not use this skill as a replacement for Xcode Archive builds or physical-device StoreKit sandbox testing.
Prerequisites
- Read access to the iOS project's
.swiftfiles,Info.plist, andPrivacyInfo.xcprivacy. - No Apple Developer account credentials, network access, or Xcode writes are required.
How It Works
1. Establish the inputs
Locate Info.plist, PrivacyInfo.xcprivacy (if present), StoreKit/subscription views, account-creation flows, and main SwiftUI views.
2. Audit across the 12 rejection rules
- Missing
Info.plistusage descriptions (NSCameraUsageDescription,NSPhotoLibraryUsageDescription,NSMicrophoneUsageDescription, etc.) for imported/called protected APIs. - Missing privacy-manifest declarations for applicable required-reason APIs. Confirm the declared reason matches actual use.
- Missing Restore Purchases action in StoreKit / subscription paywalls (Guideline 3.1.1).
- Missing Privacy Policy or Terms of Use (EULA) links on auto-renewable subscription screens (Guideline 3.1.2).
- Account registration without in-app Account Deletion flow (Guideline 5.1.1(v)).
- Third-party primary-account login without an equivalent option when Guideline 4.8 applies. Check Apple’s stated exceptions.
- External purchase links or digital-goods checkout that need review under Guidelines 3.1.1 and 3.1.3. Check the storefront, app category and applicable entitlements before classifying the finding.
- Placeholder strings (
Lorem ipsum,TODO,Coming soon,Test Mode) in user-facing SwiftUI views (Guideline 2.1). - Hardcoded
localhost/127.0.0.1/http://endpoints without ATS exception or production switch. - Force-unwrapped demo URLs or missing empty/error states in network-backed views.
NSAllowsArbitraryLoads = trueleft globally enabled inInfo.plist.- Debug logging of auth tokens or PII in release builds.
3. Verify the result
Output a prioritized pre-submission report grouped by BLOCK_REVIEW vs. WARN, citing exact file:line, the current Apple guideline, and the smallest relevant fix. Treat a static signal as a review lead until applicability is confirmed.
Examples
User request: Check our SwiftUI app before submitting v1.2 to App Store Review.
Inputs: `Info.plist` and `PaywallView.swift` using StoreKit 2 without a Restore Purchases button.
Expected result (illustrative): Flags `IOS_MISSING_RESTORE_PURCHASES` (Guideline 3.1.1) and `IOS_MISSING_SUBSCRIPTION_LEGAL_LINKS` (Guideline 3.1.2) with exact lines and SwiftUI button snippets.
Limitations
- Static analysis cannot inspect App Store Connect metadata, screenshots, demo reviewer credentials, or runtime crash paths.
Safety and side effects
Read-only static inspection (risk: safe). Makes no edits to project files, certificates, or App Store Connect state.