Rana Maninder Singh
Lesson 1 of 6iOS App Development

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

ResourceLink
PreviousPlay Store publish
NextiOS UI patterns
PrerequisitesAndroid 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

AndroidiOS
Development OSWindows / Mac / LinuxMac only
Primary IDEAndroid Studio or VS CodeXcode (required for native tooling)
Store fee$25 one-time$99/year
Review time1–7 days1–7 days
First-submit rejection rateLowerHigher (~40%)
SideloadingAllowed (APK)Extremely restricted
Test without paid accountExpo Go (free)Expo Go (free)
Test on device without storeADB installLimited (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:

GuidelineIssue
4.0 DesignLooks unfinished, bad safe areas
2.1 PerformanceCrashes on review devices
5.1.1 PrivacyData collection not disclosed
3.1.1 PaymentsOwn payment system instead of Apple IAP (30%)
4.2 Minimum functionalityApp 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 --install

Expected: Dialog confirms install or "already installed."

Step 3 — Node.js

https://nodejs.org → LTS → verify:

node --version

Expected: v20.x.x or higher

Step 4 — Create Expo project

npx create-expo-app MyIOSApp
cd MyIOSApp
npx expo start --ios

Expected: 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:

Common mistakes

  1. Treating Expo Go as proof you can submit without a developer account.
  2. Ignoring ~40% first-submit rejection norms.
  3. Mixing up Activity vs UIViewController names without saving state.

What's next

iOS UI patterns — SafeAreaView and Human Interface Guidelines.