ios-local-staging-setup
CommunitySet up iOS local staging with real data.
Software Engineering#supabase#ios#simulator#environment switching#data snapshot#auth setup#local staging
AuthorElvinOuyang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the problem of slow, fragile local iOS development that can only use mocked data instead of production-like behavior, by wiring an iOS simulator to a local Supabase instance loaded with a scoped snapshot of real production data.
Core Features & Use Cases
- One-time local staging infrastructure: Initializes Supabase locally, sets up env switching, and configures simulator-only behavior so builds continue targeting production automatically.
- Compile-time URL switching for simulator: Detects DEBUG + simulator at compile time to route API calls to localhost without manual scheme/xcconfig changes.
- Staging auth and graceful fallback: Adds a simulator launch argument flow (--skip-auth) to sign in against local staging users when available, with PreviewData fallback when Supabase is down.
- Production-to-local snapshot pipeline: Provides a scripted approach to export a single owner’s scoped production data and import it into local Supabase with matching auth identities and FK-safe ordering.
Quick Start
Run this skill to add local staging infrastructure so your iOS simulator automatically uses a local Supabase snapshot with real production data while device/TestFlight builds keep hitting production.
Dependency Matrix
Required Modules
None requiredComponents
scripts
đź’» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ios-local-staging-setup Download link: https://github.com/ElvinOuyang/claude-skill-collection/archive/main.zip#ios-local-staging-setup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.