The iOS Ecosystem — Apple's Walled Garden Explained
Lesson opener
In one line: IOS vs Android - honest comparison table.
Why it matters: This shows up at work when you need to iOS vs Android - honest comparison table.
Before this lesson: Android track
Before you start
| Resource | Link |
|---|---|
| Previous | Play Store publish |
| Next | iOS UI patterns |
| Prerequisites | Android track or React Native basics |
| Time | ~55 minutes |
BEFORE YOU START — iOS REQUIREMENTS
1. You MUST have a Mac. iOS apps cannot be built or submitted from Windows. This is Apple's requirement — not a workaround issue.
2. Xcode installed (~12 GB from Mac App Store).
3. Apple Developer Program: $99/year (USD) — required to submit to the App Store and to test on a real device outside Expo Go.
4. App Store review is stricter and often slower than Google Play.
On Windows? Complete the Android lesson first. The same React Native codebase targets both platforms — you can ship Android from Windows and iOS later on a Mac.
Same codebase from android5 runs on iOS after styling tweaks in ios2–ios4.
What you will learn
- iOS vs Android — honest comparison table
- Why ~40% of first App Store submissions are rejected
- iOS vs Android lifecycle (same idea, different names)
- Mac-only setup with verify commands
Section 1 — iOS vs Android
| Android | iOS | |
|---|---|---|
| Development OS | Windows / Mac / Linux | Mac only |
| Primary IDE | Android Studio or VS Code | Xcode (required for native tooling) |
| Store fee | $25 one-time | $99/year |
| Review time | 1–7 days | 1–7 days |
| First-submit rejection rate | Lower | Higher (~40%) |
| Sideloading | Allowed (APK) | Extremely restricted |
| Test without paid account | Expo Go (free) | Expo Go (free) |
| Test on device without store | ADB install | Limited (14-day dev installs) |
Section 2 — App Store Review Guidelines
Plain English: Apple rejects roughly 40% of first submissions on purpose — quality control, not a bug.
Most common rejection reasons:
| Guideline | Issue |
|---|---|
| 4.0 Design | Looks unfinished, bad safe areas |
| 2.1 Performance | Crashes on review devices |
| 5.1.1 Privacy | Data collection not disclosed |
| 3.1.1 Payments | Own payment system instead of Apple IAP (30%) |
| 4.2 Minimum functionality | App does too little |
Read App Store Review Guidelines before building features you cannot ship.
Section 3 — Lifecycle: iOS vs Android
Same concept as android1: save state when backgrounded, restore when resumed.
React Native + Expo handle much of this — your job is still AsyncStorage for scores (android4).
Section 4 — Mac setup (verify each step)
Step 1 — Install Xcode
Mac App Store → search Xcode → Install (~12 GB, 30–60 min). Open Xcode once to accept license.
Step 2 — Command Line Tools
xcode-select --installExpected: Dialog confirms install or "already installed."
Step 3 — Node.js
https://nodejs.org → LTS → verify:
node --versionExpected: v20.x.x or higher
Step 4 — Create Expo project
npx create-expo-app MyIOSApp
cd MyIOSApp
npx expo start --iosExpected: iOS Simulator opens (virtual iPhone). No paid developer account needed for simulator testing.
Checklist
- [ ] On a Mac (or plan to use one for iOS ship)
- [ ] Xcode installed and opened once
- [ ] Simulator runs default Expo app
- [ ] Read why 40% rejection rate is normal
Teacher walkthrough: Mac path vs Windows reality
All figures illustrative.
Step 1 — Gate the hardware. Confirm Mac + Xcode before promising an App Store date. On Windows, ship Android first from the shared RN codebase.
Step 2 — Install verify. Xcode once (license), xcode-select --install, Node LTS, npx create-expo-app → npx expo start --ios.
Step 3 — Review risk. Read rejection table (Design 4.0, Privacy 5.1.1, IAP 3.1.1) before building payment or sparse apps.
Step 4 — Lifecycle habit. Persist game/app state on background the same way Android lessons taught — Expo helps; AsyncStorage is still your job.
Failure example: built on Windows until submission week
Symptom: Team finished UI on Windows; discovered Mac-only build two weeks before launch.
Diagnosis: Platform constraint treated as optional.
Correction: Mac access in week 1 for simulator; paid Apple Developer account before device/TestFlight work.
Validation: Simulator run + checklist signed before feature freeze.
Guided practice
A teammate has only Windows and wants iOS TestFlight next Friday. What do you prescribe this week vs later?
Complete solution: This week: continue shared RN on Android/emulator; secure Mac access and Xcode. Later (on Mac): expo start --ios, then paid account for device/TestFlight — Friday TestFlight is not realistic without Mac now.
Independent practice
Acceptance criteria:
- Written plan: Mac/Xcode status, or explicit Android-first path.
- Simulator (or documented blocker) with expected verify commands.
- Two App Store rejection reasons mapped to something you will check before submit.
- Lifecycle note: where you persist state on background.
Common mistakes
- Treating Expo Go as proof you can submit without a developer account.
- Ignoring ~40% first-submit rejection norms.
- Mixing up Activity vs UIViewController names without saving state.
What's next
iOS UI patterns — SafeAreaView and Human Interface Guidelines.