Scan the project first
From the folder that contains your .xcodeproj:
npx skills add komako-workshop/stringers # agent skill: "preflight this app for App Store review"
stringer-preflight . --strict # or run the scanner directlyThe scanner reads Info.plist, INFOPLIST_KEY_… build settings in project.pbxproj, entitlements, PrivacyInfo.xcprivacy, storyboards and all .swift, .m, .mm and .h files. Code inside #if DEBUG, #Preview and PreviewProvider is ignored, as are Swift Package and CocoaPods sources.
1. Info.plist purpose strings
Projects created with recent Xcode versions have no Info.plist file; keys live in build settings as INFOPLIST_KEY_NSCameraUsageDescription and friends. Either location works. What matters is that every protected resource your code touches has a specific sentence.
IOS-PLIST-001:AVCaptureDevice,AVCaptureSessionorUIImagePickerControllerwith.camerarequiresNSCameraUsageDescription.IOS-PLIST-002:PHPhotoLibraryorUIImageWriteToSavedPhotosAlbumrequiresNSPhotoLibraryUsageDescription(read) orNSPhotoLibraryAddUsageDescription(save only). SwiftUI'sPhotosPickerandPHPickerViewControllerneed neither, because the picker runs out of process.IOS-PLIST-003:CLLocationManagerrequiresNSLocationWhenInUseUsageDescription.IOS-PLIST-004covers the rest:
| Capability detected in code | Info.plist key that must exist |
|---|---|
| Microphone | NSMicrophoneUsageDescription |
| Speech recognition | NSSpeechRecognitionUsageDescription |
| Contacts | NSContactsUsageDescription |
| Bluetooth | NSBluetoothAlwaysUsageDescription or NSBluetoothPeripheralUsageDescription |
| Face ID | NSFaceIDUsageDescription |
| HealthKit | NSHealthShareUsageDescription or NSHealthUpdateUsageDescription |
| Calendar | NSCalendarsUsageDescription or NSCalendarsFullAccessUsageDescription or NSCalendarsWriteOnlyAccessUsageDescription or NSRemindersUsageDescription or NSRemindersFullAccessUsageDescription |
IOS-PLIST-005 then checks the text. "Camera access", "TODO" or anything under 16 characters fails; "Scan a receipt to add its line items to your budget" passes. The sentence appears in the system alert, and a reviewer who cannot tell why you want the data rejects under Guideline 5.1.1.
2. PrivacyInfo.xcprivacy in the app target
UserDefaults and @AppStorage are Required Reason APIs. So are fileModificationDate, ProcessInfo.systemUptime and volumeAvailableCapacity. If you use any of them and the target has no privacy manifest, the upload is answered with ITMS-91053 (IOS-PRIV-001); if the manifest exists but misses a category, that is IOS-PRIV-002.
In Xcode: File > New > File > App Privacy, name it PrivacyInfo.xcprivacy, and tick your app target under Target Membership. A manifest that is in the folder but not in the target's Copy Bundle Resources phase does nothing. Copy-paste XML and every reason code are in the PrivacyInfo.xcprivacy reference.
If you integrate an ads or attribution SDK (GoogleMobileAds, FBSDKCoreKit, AppsFlyer, Adjust), IOS-PRIV-003 also expects NSUserTrackingUsageDescription and a call to ATTrackingManager.requestTrackingAuthorization before the SDK reads the IDFA.
3. StoreKit 2: entitlements, Transaction.updates and Restore
Guideline 3.1.1 requires a restore mechanism; IOS-IAP-001 fires when purchase code exists and no restore call does. With StoreKit 2, purchases normally sync by themselves, but the button is still required, and it should call AppStore.sync():
import StoreKit
@MainActor
final class Store: ObservableObject {
@Published private(set) var isPro = false
private var updates: Task<Void, Never>?
init() {
updates = Task { [weak self] in
for await result in Transaction.updates { // renewals, refunds, Ask to Buy approvals
guard case .verified(let transaction) = result else { continue }
await transaction.finish()
await self?.refresh()
}
}
Task { await refresh() }
}
func refresh() async {
var active = false
for await result in Transaction.currentEntitlements {
if case .verified(let t) = result, t.revocationDate == nil { active = true }
}
isPro = active
}
func restorePurchases() async {
try? await AppStore.sync()
await refresh()
}
}Listening to Transaction.updates from launch is what makes a purchase approved on another device, or a refund, show up without the user doing anything. Skipping it is the usual cause of "I paid and the app is still locked" reviews.
If you use Apple's SubscriptionStoreView, three modifiers cover both paywall rules, IOS-IAP-001 and IOS-IAP-002 (Guideline 3.1.2: Terms of Use and Privacy Policy links on the paywall):
SubscriptionStoreView(groupID: "21480000")
.storeButton(.visible, for: .restorePurchases)
.subscriptionStorePolicyDestination(url: termsURL, for: .termsOfService)
.subscriptionStorePolicyDestination(url: privacyURL, for: .privacyPolicy)A custom paywall needs the same three things as plain Button and Link views, plus the billed price and period as the most prominent price on screen. The Guideline 3.1.2 checklist has the full list.
4. Accounts: Sign in with Apple and deletion
IOS-AUTH-001 (Guideline 4.8): if the project imports GoogleSignIn or FBSDKLoginKit, offer Sign in with Apple next to it. Add the Sign in with Apple capability to the target (it writes the com.apple.developer.applesignin entitlement) and use the system button:
import AuthenticationServices
SignInWithAppleButton(.signIn) { request in
request.requestedScopes = [.fullName, .email]
} onCompletion: { result in
// exchange the credential with your backend
}
.signInWithAppleButtonStyle(.black)
.frame(height: 50)IOS-AUTH-002 (Guideline 5.1.1(v)): if the app creates accounts, it must delete them in-app. With Firebase that is try await Auth.auth().currentUser?.delete() after a recent re-authentication, plus removal of the user's data on your server. Signing out or deactivating is not deletion. Details and the Apple token revocation call are in the account deletion guide.
IOS-META-002 is the companion warning: if there is a login, App Review needs a demo username and password in App Store Connect under App Review Information, and that account must reach every gated screen.
5. Networking and build hygiene
IOS-PLIST-007: removeNSAllowsArbitraryLoads. If one legacy host needs HTTP, add it underNSExceptionDomainsand expect to explain why.IOS-BUILD-005:http://endpoints are blocked by App Transport Security anyway; switch tohttps://.IOS-BUILD-001:http://localhost:8080or an ngrok tunnel as the API base outside#if DEBUGmeans the reviewer sees spinners. Use build configurations or an.xcconfigper environment.IOS-BUILD-002: ansk-…key in Swift source can be read out of the binary withstrings. Revoke it and proxy the call.IOS-BUILD-004: private selectors (NSSelectorFromString("_…")) andLSApplicationWorkspaceare caught by Apple's automated checks under 2.5.1.IOS-PLIST-008:UIWebViewanywhere in the binary is refused at upload (ITMS-90809); useWKWebView.IOS-PLIST-006: setITSAppUsesNonExemptEncryptiontoNOif you only use HTTPS and system crypto, so builds do not wait in "Missing Compliance".IOS-PLIST-009: a missingUILaunchScreenkey makes the app run letterboxed. New SwiftUI templates set it; hand-edited plists sometimes lose it.
6. What only you can check
These are outside any scanner's reach and account for a large share of 2.1 and 2.3 rejections:
- Complete a sandbox purchase and a restore on a real device with a fresh sandbox Apple ID.
- Confirm the demo account in App Store Connect still signs in and reaches every gated screen.
- Make sure the app offers enough original, lasting value (4.2) and is not a re-skin of another app (4.3).
- Check that screenshots and previews show this exact build, with no mockup-only features.
- Open the privacy policy and support URLs in a private browser window: they must load without a login.
Two native-specific additions. If the target's device family includes iPad, the app is reviewed on an iPad: test every screen in portrait and landscape, and upload iPad screenshots, or make the app iPhone-only before the first release. And write review notes: a short factual list of what the app does, the demo account, the taps needed to reach each paid screen, every permission and why, and where Restore Purchases is. With the skill installed, your agent drafts this as REVIEW_NOTES.md from the code.