xiaohongshu
xiaohongshu
build-iphone-apps
Build professional native iPhone apps in Swift with SwiftUI and UIKit. Full lifecycle development - build, debug, test, optimize, ship. CLI-focused workflow. Use when building iOS apps, adding features, debugging, testing, or optimizing iPhone applications.
Full skill instructions
Expert guidance for building native iPhone apps using Swift, SwiftUI, and UIKit with CLI-first workflow.
Never say "this should work." Always verify:
# Build
xcodebuild -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16' build
# Test
xcodebuild -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16' test
# Launch
xcrun simctl boot "iPhone 16"
xcrun simctl install booted ./build/Build/Products/Debug-iphonesimulator/AppName.app
xcrun simctl launch booted com.company.AppName
If you didn't run it, you don't know it works.
| Question | How to Answer |
|---|---|
| Does the logic work? | Write test, see it pass |
| Does it look right? | Launch in simulator, visual check |
| Does it feel right? | User tests interaction |
| Does it crash? | Test + launch verification |
| Is it fast enough? | Profiler |
Tests verify correctness. Users verify desirability.
❌ Bad: "I refactored DataService to use async/await with weak self capture"
✅ Good: "Fixed the memory leak. leaks now shows 0 leaks. App tested stable for 5 minutes."
Users care what's different, not what changed.
Change → Verify → Report → Next change
Never batch work. Each change verified before the next. If something breaks, you know exactly what caused it.
❌ Wrong: Build for 30 minutes, then "is this what you wanted?" ✅ Right: "Before I start, does X mean Y or Z?"
Every stopping point = working state. Tests pass, app launches, changes committed.
// DEBUG: Testing YIN accuracy corrections
print("YIN Detected: \(frequency) Hz")
// DEBUG: prefixProduction code should not have debug prints. Use os_log for production.
After every change:
# 1. Build
xcodebuild -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16' build
# 2. Test
xcodebuild -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16' test
# 3. Launch
xcrun simctl boot "iPhone 16"
xcrun simctl install booted ./build/Build/Products/Debug-iphonesimulator/AppName.app
xcrun simctl launch booted com.company.AppName
Report: "Build: ✓, Tests: 12 pass 0 fail, App launches"
✅ Write test when:
⏭️ Skip test when:
Principle: Tests verify correctness without reading code.
// View-local state
@State private var isExpanded = false
// Shared observable
@StateObject private var viewModel = MyViewModel()
// Environment
@Environment(\.colorScheme) var colorScheme
// Avoid retain cycles
service.fetchData { [weak self] result in
guard let self = self else { return }
self.handle(result)
}
// UI updates
@MainActor
func updateUI() { /* ... */ }
xcodebuild -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16' build
xcodebuild clean -scheme AppName
xcodebuild test -scheme AppName -destination 'platform=iOS Simulator,name=iPhone 16'
xcodebuild test -only-testing:AppTests/FeatureTests/test_specific
xcrun simctl list devices
xcrun simctl boot "iPhone 16"
xcrun simctl install booted path/to/App.app
xcrun simctl launch booted com.company.AppName
xcrun simctl spawn booted log stream
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience