# How to use Codex to build an offline iPhone player

Dean Hipkiss built a SwiftUI music player with Codex in Xcode, using a design brief to guide AVPlayer, background audio, AirPlay and project-specific debugging.

Agent: Codex (via Xcode)
Tools: Codex, Xcode, SwiftUI, AVFoundation, AVPlayer, AirPlay
Category: Life admin & home
Date: 2026-02-18

Outcome: Author reports local albums playing on iPhone and through AirPlay.

## Steps

1. Wrote design brief with screens/navigation/playback behavior.
2. Codex structured SwiftUI models/viewmodels and AVPlayer manager.
3. Implemented background playback, remote controls and AirPlay.
4. Author pasted compilation/behavior errors to debug in project context.

Human oversight: Author set goals and architecture, imported artwork/music, and exercised playback.

Source: [Dean Hipkiss on Blog](https://deanhipkiss.com/posts/ai-coding-agents-openai-codex-xcode-swiftui)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-build-an-offline-iphone-player/
