惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - Franky
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
小众软件
小众软件
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
C
Check Point Blog
WordPress大学
WordPress大学
博客园 - 【当耐特】
博客园 - 司徒正美
D
Docker

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I shipped my first iOS app, got rejected twice, and built...
Bryan · 2026-06-13 · via DEV Community

Bryan

The code was never the hard part. The App Store review was.

I shipped my first iOS app — a small baby tracker — and got rejected twice. Not for bugs. Not for crashes. For things I literally couldn’t see: a privacy-label mismatch I didn’t know existed, and EULA/paywall wording that wasn’t where Apple wanted it. Each rejection meant a 24–48h wait, a fix, a resubmit, and another wait.

The frustrating part wasn’t the rejection. It was that every reason was already sitting in my build and my App Store Connect metadata the whole time. Nothing just cross-references them and tells you “hey, this will bounce.”

So I started pulling my own builds apart to understand what Apple actually looks at. Here’s what I learned — and the Swift to do it yourself.

An .ipa is just a ZIP

That’s the first thing that clicks. Rename it, unzip it, and you get:

Payload/
YourApp.app/
Info.plist
PrivacyInfo.xcprivacy
embedded.mobileprovision
Frameworks/
SomeSDK.framework/
PrivacyInfo.xcprivacy

Everything Apple’s automated checks care about is in there. If you build with Xcode, the .xcarchive in ~/Library/Developer/Xcode/Archives has the same .app bundle under Products/Applications/ — and it exists before you export an .ipa, so you can inspect it earlier.

Reading Info.plist (it’s binary)

A common gotcha: the Info.plist inside a shipped build is usually in binary format, not XML. In Swift, PropertyListSerialization handles both transparently:

let plistURL = appURL.appendingPathComponent("Info.plist")
let data = try Data(contentsOf: plistURL)
let info = try PropertyListSerialization
.propertyList(from: data, format: nil) as? [String: Any] ?? [:]

Now you can check the things that quietly get apps rejected. The classic one is empty or placeholder usage strings (Guideline 5.1.1):

for (key, value) in info where key.hasSuffix("UsageDescription") {
let text = (value as? String ?? "").trimmingCharacters(in: .whitespaces)
if text.count < 10 || ["todo", "test", "xxx"].contains(text.lowercased()) {
flag(.error, "5.1.1", "(key) is empty or placeholder")
}
}

I shipped a NSCameraUsageDescription that literally said “TODO” once. Don’t be me.

Another cheap win: ITSAppUsesNonExemptEncryption. If it’s missing, you get the export-compliance question on every submission, which slows you down.

The privacy manifests (the modern rejection magnet)

Since May 2024, third-party SDKs that use “required reason APIs” must ship a privacy manifest (PrivacyInfo.xcprivacy). Missing ones are a top rejection reason now. They live at the app root and inside each .framework, so you walk them recursively:

let frameworksURL = appURL.appendingPathComponent("Frameworks")
let frameworks = (try? FileManager.default.contentsOfDirectory(
at: frameworksURL, includingPropertiesForKeys: nil)) ?? []

for framework in frameworks where framework.pathExtension == "framework" {
let manifest = framework.appendingPathComponent("PrivacyInfo.xcprivacy")
if !FileManager.default.fileExists(atPath: manifest.path) {
flag(.error, "privacy", "(framework.lastPathComponent): no privacy manifest")
}
}

The part that actually matters: the cross-check

Here’s the insight that turned this from “a checklist” into something useful.

A static checklist can tell you “you should declare your data collection.” It can’t tell you that your specific build contains an SDK that collects data you forgot to declare. That requires crossing your build with your App Store Connect metadata.

Concrete example: RevenueCat’s privacy manifest declares it collects Purchase History:

let manifestData = try Data(contentsOf: manifest)
let m = try PropertyListSerialization
.propertyList(from: manifestData, format: nil) as? [String: Any] ?? [:]

let collected = (m["NSPrivacyCollectedDataTypes"] as? [[String: Any]] ?? [])
.compactMap { $0["NSPrivacyCollectedDataType"] as? String }
// -> ["NSPrivacyCollectedDataTypePurchaseHistory"]

If that data type is collected by an SDK in your binary but missing from your App Privacy labels in App Store Connect (which you can read via the App Store Connect API, read-only), that’s an instant Guideline 5.1.1 rejection — and one you’d never catch by eye. That mismatch is the whole game.

Deterministic vs subjective

One honest distinction I had to make: not all rejections are catchable from static analysis.

  • Deterministic (always catchable): missing privacy manifests, undeclared SDK data, empty usage strings, export compliance, metadata mismatches. These never vary by reviewer.
  • Subjective (reviewer-dependent): design judgments, “spam”, perceived value. No tool can predict these honestly.

Anyone claiming to predict the second bucket is selling you something. The first bucket, though? That’s the stuff that quietly wastes your week, and it’s 100% catchable before you ever hit “Submit.”

I packaged this into a tool

I ended up turning all of this into a small native macOS app called Cleared — you drop in a build, it parses it locally, pulls your App Store Connect metadata read-only, and flags the deterministic rejection reasons before you submit. It runs fully on-device (the AI explanations too — no key, nothing leaves your Mac).

But honestly, the point of this post isn’t the tool. It’s that most App Store rejections are predictable, and you already have everything you need to catch them — it’s sitting in your .ipa right now.

If you ship iOS apps: what’s the rejection that burned you the most? I’m still adding checks based on real ones.

(If you want to try the tool: cleared.sakaax.com — but the parsing above works on its own too.)