Download

How to build an app in Xcode. Your first project, from New Project to your own iPhone

What to pick in the new project sheet, where the navigator, canvas and debug area live, how to run the app in the simulator and on your phone, and when you need a developer account.

In short

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.

FieldWhat to pickOptions in Xcode 27.0
Product Namea short name, for example Helloanything, you can change it later
Teamyour Apple Account, a Personal Team without a membershipNone or a team from Xcode › Settings › Apple Accounts
Organization Identifiera reverse domain, for example com.yournamewith the name it forms the bundle identifier com.yourname.Hello
InterfaceSwiftUISwiftUI (default) or Storyboard
LanguageSwiftSwift or Objective-C
Testing SystemNoneNone (default), XCTest for Unit and UI Tests, Swift Testing with XCTest UI Tests
StorageNoneNone (default), SwiftData, Core Data
Host in CloudKitleave it offappears 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.
The Xcode 27 window for your first appThe Xcode 27.0 window for a first SwiftUI app, checked on our Mac on October 17, 2026. 1. Toolbar: Run builds and launches the app, Command-R, next to it the run destination menu with the iPhone 17 Pro simulator or a connected iPhone. 2. Navigator, left: project files HelloApp.swift, ContentView.swift and Assets, search, build errors, breakpoints. 3. Editor, center: code of the open file. 4. Preview canvas next to the code: a live screen driven by #Preview. 5. Inspector, right: properties of the selection. 6. Debug area, bottom: print output and the console, Shift-Command-Y.The Xcode 27 window for your first appFive areas and a toolbar. A SwiftUI project in Xcode 27.0, checked on our Mac on October 17, 2026iPhone 17 Pro1Run and run destination2NavigatorHelloHelloApp.swiftContentView.swiftAssets3EditorContentView.swift4Preview canvas#Preview5Inspector6Debug areaprint and console, Shift-Command-Y123456ToolbarNavigatorEditorPreview canvasInspectorDebug areaRun builds and launches(Command-R), next to it thesimulator or iPhone menuproject files, search, build errors andbreakpointscode of the open file, the firstscreen is ContentView.swifta live screen next to the code,driven by #Previewproperties of the selected file orelementprint output and the console,Shift-Command-Y
A first app needs only the editor, the Preview canvas and the Run button, the other areas come later. Xcode 27.0, our Mac, October 17, 2026.

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.

  1. If the menu has no iPhones, download an iOS runtime in Xcode › Settings › Components. The Mac App Store download doesn't include it.
  2. Choose a model, for example iPhone 17 Pro, and press Command-R.
  3. The first launch takes longer because the simulator boots from scratch.
  4. 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.

  1. Sign in under Xcode › Settings › Apple Accounts.
  2. In the target's Signing & Capabilities tab, pick your Personal Team under Team and keep Automatically manage signing on.
  3. Connect the iPhone with a cable and tap Trust on the phone.
  4. 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.
  5. Select the iPhone in the run destination menu and press Run.
  6. 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.

WhatFree Apple AccountApple Developer Program, $99 a year
Xcode, simulator, Preview canvasyesyes
Your own iPhoneup to 3 devices, 7-day profileup to 100 devices per device family a year
Archive and upload to App Store Connectnoyes
TestFlightnoup to 10,000 external testers
Publishing on the App Storenoyes
Xcode Cloudno25 compute hours a month

From Apple's Choosing a Membership and enrollment pages, checked October 16–17, 2026.

From an empty project to TestFlightA first app's path from an empty project to TestFlight, per Apple as of October 17, 2026. Free with a regular Apple Account: 1. File, New, Project, App type, SwiftUI interface, Swift. 2. Run in the simulator, the first build took 15.5 seconds and a repeat build 1.9 seconds on an M2 Mac with Xcode 27.0. 3. Your own iPhone through a Personal Team and Developer Mode, the profile lasts 7 days. With the Apple Developer Program at 99 dollars a year: 4. Product, Archive with Any iOS Device. 5. Upload to App Store Connect through Distribute App. 6. TestFlight, up to 10,000 external testers.From an empty project to TestFlightThe first three steps are free with an Apple Account, the rest need the $99 a year Apple Developer Program. Apple,October 17, 2026123456File › New › ProjectRun in the simulatorYour own iPhoneProduct › ArchiveUpload to App Store ConnectTestFlightApp type, SwiftUI interface, Swiftfirst build 15.5 seconds, repeat 1.9on an M2Personal Team and DeveloperMode, 7-day profilerun destination Any iOS Device(arm64)Distribute App › App Store Connect› Uploadup to 10,000 external testersfreefreefree$99$99$99needs the $99 a year accountfree with an Apple Account
You pay Apple from step four, when the build leaves your Mac for other people. Apple's membership comparison, checked October 17, 2026, build times measured on our Mac.

With a membership, a build reaches App Store Connect in four steps.

  1. Create the app record in App Store Connect with the same bundle identifier as the project.
  2. Choose Any iOS Device (arm64) as the run destination. A simulator build can't be archived.
  3. Choose Product › Archive. Xcode builds the release version and opens the Organizer.
  4. 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