Build Your First iPhone App with Claude & Xcode 27
Beto, September 16, 2026 · 67,204 views
This video shows how to build an expense tracker iPhone app called Budget Buddy using Xcode 27 and SwiftUI. It focuses on integrating modern Apple APIs like speech-to-text and Foundation Models for on-device AI to convert spoken input into structured expense data saved locally.
If you are new to AI-powered app development or want to explore the latest iOS 27 features, this walkthrough covers everything from project setup to testing on a physical device. You’ll also see how to use VoiceOS for speech commands and code assistance.
What's inside
- Setting up the Xcode 27 project for Budget Buddy
- Signing in with your Apple developer account and configuring the app
- Using VoiceOS for speech-to-text and AI-powered coding assistance
- Designing the UI with SwiftUI and live previews
- Connecting Claude Agent and Fable for AI-driven code generation
- Testing the app on simulator and physical iPhone with Device Hub and QuickTime
- Handling microphone permissions and fallback UI
- Adding developer tools for toggling features and dummy data
Setting up the Xcode 27 project for Budget Buddy
The video starts by creating a new multi-platform app project in Xcode 27, choosing a proper template instead of the quick start app to configure important details like the app name and organization identifier. The app is named Budget Buddy, and the organization ID uses the developer’s domain reversed (dev.codewithbeto.budgetbuddy-video).
Xcode 27’s live preview feature is demonstrated, showing how you can see your SwiftUI UI updates instantly on different device sizes including iPhone and iPad simulators. This helps speed up UI iteration.
Signing in with your Apple developer account and configuring the app
You need to sign in with your Apple developer account inside Xcode to enable running the app on a physical device. The video explains you don’t need a paid developer account unless you want to publish the app.
The new Intelligence tab in Xcode 27 lets you connect AI agents like Claude Agent or Codex. You sign in and select which agent to use for AI-assisted coding inside Xcode. This integration is key for the AI-powered workflow shown.
Using VoiceOS for speech-to-text and AI-powered coding assistance
VoiceOS is a powerful tool used throughout the video. It allows you to control your Mac and apps by voice, convert speech to text, and interact with AI agents. For example, pressing Control+Option and speaking can open apps, schedule meetings, or paste prompts into Xcode.
VoiceOS also helps with coding by letting you ask how to create SwiftUI components or generate code snippets without leaving the IDE. This keeps the workflow fast and context-aware.
Designing the UI with SwiftUI and live previews
The UI design is inspired by expense tracker examples found on Dribbble. The app uses a clean black-and-white style with a daily spending chart, a list of expense items, and input options for speech and manual entry.
SwiftUI’s live preview shows the app’s onboarding screens with smooth animations and dark mode support. The video highlights how to quickly test UI changes and toggle device previews.
Connecting Claude Agent and Fable for AI-driven code generation
Using the Claude Agent connected in Xcode, the video demonstrates prompting it with a detailed plan for the app’s features, including speech input, local Foundation Models for AI, onboarding, and data sorting.
Fable 5.1 is used as the AI backend, which requires usage credits, but the $20 Claude subscription with Opus 5 can also be used. The agent asks clarifying questions about data structure, currency handling, and auto-categorization before generating the full SwiftUI app code.
Testing the app on simulator and physical iPhone with Device Hub and QuickTime
After AI code generation, the app is run on the iPhone 17 simulator. The video shows how to switch to a physical iPhone 17 Pro connected to Xcode for real-device testing.
Device Hub in Xcode lets you view and control your physical device screen from the Mac. However, the video reveals a microphone input issue caused by Device Hub disabling camera and mic access. Switching to QuickTime screen sharing fixes this.
Handling microphone permissions and fallback UI
The app requests microphone permissions for speech input. If denied, it shows a fallback UI that directs users to enable permissions in settings.
The speech-to-text input uses a bottom sheet with a listening indicator. The video tests adding expenses by voice and manual keyboard input, showing smooth animations and data saving locally with SwiftData.
Adding developer tools for toggling features and dummy data
A developer screen is added to toggle permissions, verify Foundation Model availability, and re-show onboarding. Another feature lets you add dummy expense data to test the graph and list UI with rich content.
The video also shows how to prompt Claude to update UI colors and add features, demonstrating a fast iterative AI-assisted development workflow.
Resources

BookFrom Idea to App Store
A practical guide to building, versioning, and deploying apps with Git and AI-powered workflows.

CourseReact Native course
Learn fundamentals through shipping apps with modern APIs and AI integration.

NewsletterCode with Beto Newsletter
Stay updated on AI, SwiftUI, and app development tips.
Like this article? Get the rest of the library plus weekly React Native tips. Free.