You start an app in Xcode with File › New › Project, the App type and the SwiftUI interface, then press Run to launch it in the iPhone simulator. A free Apple Account is enough to install it on your own iPhone, but that profile lasts 7 days. TestFlight and the App Store need an Apple Developer Program membership at $99 a year (Apple, checked October 17, 2026).
What to choose when you create a new Xcode project
Open File › New › Project, pick iOS at the top, choose App under Application and click Next. The second sheet has eight fields, and the defaults are fine for a first app in almost all of them.
| Field | What to pick | Options in Xcode 27.0 |
|---|---|---|
| Product Name | a short name, for example Hello | anything, you can change it later |
| Team | your Apple Account, a Personal Team without a membership | None or a team from Xcode › Settings › Apple Accounts |
| Organization Identifier | a reverse domain, for example com.yourname | with the name it forms the bundle identifier com.yourname.Hello |
| Interface | SwiftUI | SwiftUI (default) or Storyboard |
| Language | Swift | Swift or Objective-C |
| Testing System | None | None (default), XCTest for Unit and UI Tests, Swift Testing with XCTest UI Tests |
| Storage | None | None (default), SwiftData, Core Data |
| Host in CloudKit | leave it off | appears with SwiftData or Core Data, syncs through iCloud |
Options from the App project definition inside Xcode 27.0 (27A266a) on our Mac, checked October 17, 2026. The identifier is explained on the bundle ID page.
Tests and storage can be added later, so it's simpler to leave them off at first. Swift Testing works only with Swift, and Xcode won't let you pick it together with Objective-C. After Create, Xcode asks where to save the project folder and offers to create a Git repository in it. Say yes, so you can undo any change that goes wrong.
How the Xcode window is laid out
The Xcode window has five areas and a toolbar. You can hide the side areas, and Xcode remembers the layout for each project.
- Toolbar. Run (Command-R) builds and launches the app, Stop (Command-.) ends it. Next to them is the run destination menu, where you pick a simulator or a connected iPhone.
- Navigator, left. Project files, search, build errors and breakpoints. The first icon shows the file list.
- Editor, center. The code of the open file. A new project has two, HelloApp.swift with the app entry point and ContentView.swift with the first screen.
- Preview canvas. A live preview of the screen next to the code. The line
#Preview { ContentView() }drives it, and every code change shows up on the canvas. The framework itself is covered on the SwiftUI page. - Inspector, right. Properties of the selected file or element. A first app barely needs it.
- Debug area, bottom. print output and the debugger console while the app runs, toggled with Shift-Command-Y.
Project settings open when you click the project name at the top of the navigator. The General tab holds the name, version and minimum iOS, Signing & Capabilities holds the signing team and bundle identifier. Xcode's own interface is English only, Xcode 27.0 ships a single en localization folder (checked on our Mac, October 17, 2026). The AI assistant has its own button, see Claude and ChatGPT in Xcode 26.
How do you run an app in the iOS simulator?
Pick an iPhone model in the run destination menu and press Run. Xcode builds the project, opens the simulator and launches the app.
- If the menu has no iPhones, download an iOS runtime in Xcode › Settings › Components. The Mac App Store download doesn't include it.
- Choose a model, for example iPhone 17 Pro, and press Command-R.
- The first launch takes longer because the simulator boots from scratch.
- Change the text in ContentView.swift and press Command-R again. Xcode rebuilds only what changed.
We timed it on our Mac on October 17, 2026. On an M2 Mac with Xcode 27.0, the first simulator build of a one-screen SwiftUI project with xcodebuild took 15.5 seconds, and a repeat build with no changes took 1.9 seconds. The app itself is 356 KB, and the build folder next to it is 143 MB.
Most of the disk goes to simulator runtimes. Three iOS versions, 26.3.1, 26.5 and 27.1, take 23.1 GB on our Mac, while Xcode 27.0 itself takes 3.9 GB. Since Xcode 27 the simulators open in the Device Hub app. What changed there and what the simulator can't do is on the iOS simulator page.
How do you run an Xcode app on your iPhone for free?
A regular Apple Account is enough for your own iPhone. Xcode creates a Personal Team for it and signs the app on its own.
- Sign in under Xcode › Settings › Apple Accounts.
- In the target's Signing & Capabilities tab, pick your Personal Team under Team and keep Automatically manage signing on.
- Connect the iPhone with a cable and tap Trust on the phone.
- Turn on Developer Mode. On iOS 16 and later it's Settings › Privacy & Security › Developer Mode. The phone restarts, then asks you to confirm and enter your passcode.
- Select the iPhone in the run destination menu and press Run.
- If the phone says the developer isn't trusted, open Settings › General › VPN & Device Management and trust your profile.
Developer Mode steps from Apple's documentation and the Expo guide, checked October 17, 2026.
The free team has tight limits. Apple's membership comparison allows up to 3 devices and 10 App IDs, up to 3 apps per device, and the install profile expires after 7 days. After that the app stops opening and you run it from Xcode again (checked October 17, 2026). More on these limits on the developer account page.
What programming languages does Xcode support?
Swift is the main language for new apps in Xcode. Xcode 27.0 ships Swift 6.4, and the new project sheet offers only two languages, Swift and Objective-C.
An existing project can also take C, C++ and Objective-C files, plus Metal shaders for GPU graphics. All of them are under File › New › File, and Apple clang 21.0 from the same Xcode compiles them (checked on our Mac, October 17, 2026). A SwiftUI app needs Swift alone.
The languages of your app are set separately from the language of your code. The list lives in the project's Info tab under Localizations, and Xcode gathers the strings to translate into a string catalog. Flutter and React Native also build the iPhone version through Xcode, see Xcode on Windows.
When do you need the $99 account, and how do you upload a build?
You pay Apple when the app has to reach other people. Code, the simulator and running on your own iPhone are free.
| What | Free Apple Account | Apple Developer Program, $99 a year |
|---|---|---|
| Xcode, simulator, Preview canvas | yes | yes |
| Your own iPhone | up to 3 devices, 7-day profile | up to 100 devices per device family a year |
| Archive and upload to App Store Connect | no | yes |
| TestFlight | no | up to 10,000 external testers |
| Publishing on the App Store | no | yes |
| Xcode Cloud | no | 25 compute hours a month |
From Apple's Choosing a Membership and enrollment pages, checked October 16–17, 2026.
With a membership, a build reaches App Store Connect in four steps.
- Create the app record in App Store Connect with the same bundle identifier as the project.
- Choose Any iOS Device (arm64) as the run destination. A simulator build can't be archived.
- Choose Product › Archive. Xcode builds the release version and opens the Organizer.
- Select the archive, click Distribute App, then App Store Connect and Upload. Once processed, the build appears in App Store Connect, ready for TestFlight or a version.
Upload steps from the Xcode documentation, checked October 17, 2026. The store page, the privacy form and submission are covered in How to publish an app on the App Store.
Appto takes this same path on your Mac. It installs Xcode and the iOS runtime with buttons from its Mac setup checklist, and the agent, Claude Code or Codex on your subscription, writes the app in a regular Xcode project, builds it and walks every screen in the simulator itself. Appto asks for your OK before each change in App Store Connect, and the project always opens in your own Xcode. All 9 of the author's apps on the App Store as of October 13, 2026 were built this way.
Questions
Can I build an app in Xcode for free?
Yes. Xcode is free, and a regular Apple Account runs your app in the simulator and on your own iPhone with a 7-day profile. TestFlight and the App Store need the $99 a year developer membership (Apple, October 17, 2026).
Can I develop iOS apps without Xcode?
You can write code elsewhere, but an App Store build comes only from Xcode on a Mac, your own or a cloud one. The options without a Mac are in our article on Xcode for Windows.
Is Xcode difficult to learn?
A first app needs only the editor, the Preview canvas and the Run button. A new SwiftUI project already has a working screen, and on our Mac it built in 15.5 seconds without a single edit (October 17, 2026).
How big is Xcode?
Xcode 27.0 takes 3.9 GB on our Mac, and three iOS simulator runtimes take another 23.1 GB (October 17, 2026). Plan disk space for the runtimes up front.
Can I build an app in Xcode on an iPhone?
No. Xcode runs only on a Mac, and Xcode 27 needs macOS Tahoe 26.6 and an M1 chip or later. The iPhone is where you run and test the app.
Build your own app in Appto
Appto checks the niche on fresh App Store data, designs the screens, writes the code, builds the App Store page and submits to Apple from your account or shows you what to press in App Store Connect. Runs on your own Claude Code or Codex.
Download for Mac