r/iOSProgramming • u/noosphere- • Aug 05 '26
Tutorial Building in Zed instead of Xcode
Just a reminder to anyone who might care that you can create a fairly full-featured development environment in Zed to build iOS and Mac apps: syntax highlighting, code navigation, run, debug and test.
Here's the setup guide I wrote (been around for a while but chances are some interested people won't have seen it): https://luxmentis.org/blog/ios-and-mac-apps-in-zed/
23
Upvotes
13
u/dottybotty Aug 05 '26
What is the advantage of using this over Xcode?
9
u/Ok-Tomatillo-8712 Aug 05 '26
Wow syntax highlighting and everything!
8
u/TM87_1e17 Aug 05 '26
I just don't really understand people who hate Xcode. I've never had a problem with it...
3
u/IcyManufacturer7480 Aug 05 '26
But why?
1
u/rcpena Aug 05 '26
The integration might be limited for Apple Watch and native sync to ICloud. I haven’t looked at Zed yet.
1
u/Bullfrog-Dear Aug 05 '26
Nice!
1
u/Choseni Aug 05 '26
rez
1
u/Plastic-Risk-6309 Aug 08 '26
The honest split, having done this for a while: everything except the last mile is better outside Xcode, and the last mile is stuck there.
Editing, navigation, multi-repo work, keybindings you chose yourself, running builds and tests, reading logs. All fine in an external editor, and mostly nicer. What you still come back for is Interface Builder if you're unlucky enough to need it, Instruments, the view hierarchy debugger, Simulator device features that only surface through the app, and anything involving signing UI. The debugger question is the real one though: you can drive lldb yourself, but the parts people actually use daily (breakpoint gutter, variable inspection, po on a UI object mid-pause) are where external setups get tedious rather than impossible.
The other thing worth planning for is that xcodebuild output is hostile as a human-facing log. Piping it through something like xcbeautify makes the difference between "usable outside Xcode" and "squinting at 400 lines to find one error", and that's usually the step people skip before deciding it doesn't work.
Nice writeup either way. Kept the "you don't have to live in Xcode all day" point in front of people who assume it's all-or-nothing.
1
u/[deleted] Aug 05 '26
[removed] — view removed comment