The essential iOS development tool on a Mac is Apple’s Xcode: it’s free on the Mac App Store and includes the iOS SDK, simulators, code signing, Interface Builder, Instruments and Archive for uploading, so every iOS app is built and shipped with it. Your code editor is a separate choice: install the free KXApp extension in VS Code or Cursor and you get Swift code completion, one-key build and run, breakpoint debugging on a real iPhone, and visual editors for Info.plist, app icons and localization. Xcode stays installed, and you still use it for Interface Builder, Instruments and App Store upload. Details below, current as of October 2026.
Do you have to use Xcode to build iOS apps?
You have to install it. The iOS SDK, the simulator runtimes, code signing and the App Store upload tools all ship with Xcode. Whatever editor you write code in, building, signing and installing on an iPhone come down to the Xcode on your Mac, which makes Xcode the one Apple development tool you can’t skip.
Having to install Xcode doesn’t mean you have to write every line in it. An iOS project is an .xcodeproj or .xcworkspace, and other editors can open, edit and run it as long as they build with Xcode. That’s how KXApp works: it builds and debugs with the Xcode you already have (version 16 or later), nothing in the project is converted, and teammates who use Xcode aren’t affected.
Is Xcode free, and where do you download it?
Xcode is free. Open the App Store on your Mac, search for Xcode and install it, or download it from the Apple Developer website. Launch a fresh install once and let it add its extra components and iOS platform support (the simulator runtime) before other editors build with it.
Developing and debugging cost nothing: sign in with your Apple ID under Xcode Settings › Accounts and you can install and debug apps on your own iPhone. Publishing on the App Store or distributing through TestFlight requires the paid Apple Developer Program; you then archive with Product › Archive in Xcode and upload from the Organizer.
Which editors besides Xcode can you write Swift in?
The three common choices for Swift and SwiftUI are Xcode, VS Code and Cursor. Xcode is Apple’s official Swift IDE, with building, debugging, interface design, profiling and upload in one app. VS Code is a general-purpose code editor with a large extension catalog and customizable shortcuts, popular with developers who also work on web, Flutter or React Native. Cursor is built on VS Code, adds AI code writing and editing, and runs most VS Code extensions.
The difference is how well each handles Xcode projects. VS Code’s official Swift extension suits Swift packages, but with an .xcodeproj, completion is often partial and you can’t build and run on an iPhone. With KXApp installed, VS Code and Cursor open Xcode projects directly, with completion and go to definition for Swift, SwiftUI, Objective-C, C and C++, and for third-party libraries after one build. See VS Code for iOS development for a side-by-side comparison.
How do you build iOS apps in VS Code and Cursor?
On a Mac with Xcode installed, it takes four steps to build iOS apps in VS Code or Cursor:
- Check requirements: Xcode 16 or later, plus VS Code 1.93 or later, or Cursor.
- Install the extension: search for kxapp in the Extensions view (Cmd+Shift+X); the extension ID is kxapp.kxapp. Cursor installs it from Open VSX with the same search. It’s free and needs no account.
- Open the project: use File › Open Folder… on the folder that contains your .xcodeproj or .xcworkspace, then pick the scheme and run destination (a simulator or a connected iPhone) in the status bar.
- Build and run: Cmd+B builds and sends errors to the Problems panel; Cmd+R builds and runs, with breakpoints, variables and the call stack in the Debug view; Cmd+. stops.
In Cursor, once the AI has edited your code you press Cmd+R in the same window to check it, and compile errors in the Problems panel can go straight back to the AI, with no switching between apps. See Cursor iOS development for the details, and the quick start for a complete first run.
The project files you edit day to day have visual editors too: Info.plist, entitlements, privacy manifests, app icons (every size generated from one 1024×1024 image), String Catalog localization and Build Settings, saved in the same format Xcode uses. A project built in VS Code doesn’t need a rebuild when you switch to Xcode, so you can move between the two at any time.
Which iOS development tools fit which tasks?
| Task | Xcode alone | Xcode + VS Code / Cursor with KXApp |
|---|---|---|
| Swift, SwiftUI and Objective-C completion and navigation | In Xcode | In VS Code / Cursor |
| Build and run on a simulator | Cmd+R | Cmd+R, same shortcuts as Xcode |
| Breakpoint debugging on a real iPhone | Yes | Yes, breakpoints, variables and call stack in the editor |
| XCTest and Swift Testing unit tests | Test navigator | VS Code Test Explorer |
| Edit Info.plist, app icons, localization, Build Settings | Yes | Visual editors, same format as Xcode |
| Run and check after AI code edits | Switch between apps | All in one Cursor window |
| Storyboard and XIB layout (Interface Builder) | Yes | Back to Xcode |
| SwiftUI preview canvas | Yes | Back to Xcode |
| Instruments profiling | Yes | Back to Xcode |
| Archive and upload to the App Store | Yes | Back to Xcode |
| Apple ID sign-in and signing | In Xcode | In Xcode; KXApp uses the same signing |
A rough guide to choosing:
- New to iOS development, or heavy on Storyboards and SwiftUI previews: work mainly in Xcode, it’s the simplest path.
- Already at home in VS Code or Cursor, and mostly writing and debugging code: write and run in VS Code or Cursor day to day, and open Xcode for interface design, profiling and upload.
- Working across stacks (web, Flutter or React Native with native iOS parts): open and debug the native project in the same editor and drop one window from the routine.
In short, the iOS development tools you need on a Mac start with Xcode; whether you write code in Xcode, VS Code or Cursor depends on your habits and project, and since both setups use the same project you can switch at any time.
FAQ
What is Apple’s app development tool called?
It’s called Xcode, Apple’s integrated development environment, free on the Mac App Store. Apps for iPhone, iPad, Mac, Apple Watch and Apple TV are all built and uploaded with it. You can pair it with VS Code or Cursor for writing code, while building still uses Xcode.
What IDE should you use for Swift?
For iOS apps, start with Xcode, Apple’s official Swift IDE. If you prefer VS Code or Cursor, install KXApp to open Xcode projects directly with Swift code completion, build and run, and breakpoint debugging; for plain Swift packages, VS Code’s official Swift extension also works.
Can you build iOS apps on Windows?
Not with Xcode and KXApp: Xcode only runs on macOS, and KXApp needs a Mac with Xcode 16 or later. Building, signing, installing on an iPhone and submitting to the App Store all happen on that Mac.
Can apps built in VS Code go on the App Store?
Yes. KXApp builds with the Xcode on your Mac, so the project and its output are the same as in Xcode; to publish, archive and upload in Xcode, which requires the Apple Developer Program.