Post

Replies

Boosts

Views

Activity

editing Makefile in Xcode editor
I want to edit a Makefile using the Xcode editor (part of my project). I can create and edit the file, but Xcode seems to assume it’s a Swift file — it applies Swift syntax highlighting, and I get incorrect suggestions while editing. I tried changing the “Open As” option from “Source Code,” but there’s no “Plain Text” option available. I’m using Xcode 16.4. I’ve seen suggestions like: • Using an external editor (which works, but feels clunky), • Renaming the file to something like Makefile.txt (but that breaks standard CLI use, e.g. make expects Makefile). Not too happy with either workaround — did I overlook a proper way to just edit a Makefile in Xcode without confusion? Any suggestions appreciated! Thanks, Lourens
3
0
103
Sep ’25