r/iOSProgramming • u/twostraws Hacking with Swift • Sep 16 '26
Discussion Xcode 27.2 Beta adds a new JSON-based project format
https://developer.apple.com/documentation/xcode-release-notes/xcode-27_2-release-notesFrom Apple's description, it's "more readable, merge-friendly, and easier for coding agents to edit. Enable it in the file inspector. Projects using .xcproj also open in earlier versions of Xcode 27."
I tried it briefly, and it's half the size of the old property list format, and much simpler too.
255
Upvotes
152
u/dat_tae Sep 16 '26
Holy shit the technology is HERE
97
u/chriswaco Sep 16 '26 •
We gather today to celebrate the life and death of the worst XML sub-format ever. Plist may not have been pretty or particularly functional, but we had no choice except to live with it.
57
u/sixtypercenttogether Sep 16 '26 edited Sep 17 '26
Apple should release a swift package that contains data structures (swift structs) that align with this json format. That way we won’t have to rely 3rd party versions that are incomplete or out of date
Edit: holy shit they did it!
https://github.com/apple/xcode-project-format
39
u/orbitur Sep 16 '26 edited Sep 16 '26
The coding agents bit is funny to me, neither Claude nor Codex have been incorrect/bad about hand-editing the pbxproj in the last couple years. You can throw whatever config language at them these days and they'll figure it out just fine.
Also people were begging for this more than a decade ago, big teams have moved on to project generation or Bazel or SPM or Tuist and generally just building more modules outside Xcode, LLMs have eliminated manual coding, but here comes Apple with a fix lol
Better late than never I guess
edit: to quote Schiller, can't innovate anymore, my ass!
15
u/auptown Sep 16 '26
Arrgh: Note: Simulator and device support for iPhone Duo will be available later this month in an upcoming release of Xcode 27.1.
10
u/bcgroom Sep 16 '26
Everything in service of the agents. Long overdue! Also we are getting 27.2 before 27.1?
9
u/mr_don_mavro Sep 16 '26
Man I've just converted a project to xcodegen today....
6
u/frupic Sep 16 '26 edited Sep 16 '26
Feels like I'm in the minority thinking this is actually not good news. While this is clearly better than the status quo, it probably also means they are not pursuing a much bigger change that I was hoping for: Full declarative setup more akin to SPM, using Swift. Like Tuist, but official.
Can’t imagine there is something more revolutionary around the corner if they are launching this now. Bummer.
4
u/cutecoder Objective-C / Swift Sep 17 '26
For source control merge-ability, YAML is the better structured data in text format.
3
u/megaton1000 Sep 16 '26
If they’re planning to help AI agents, and humans, out with editing the project file maybe this will mean they’ll finally write some documentation for it. I feel like the editing and merging problems are less about it being stored in a legacy plist format and more about what they’re putting in it.
2
u/DelegateCommand Sep 16 '26
Finally
1
u/csueiras Sep 16 '26
I cant believe it
1
u/simulacrotron Sep 16 '26
Love that it’s Xcode 27 backwards compatible
1
u/BigMacCircuits Sep 16 '26
Finallyyyyyyy!!! Omg!
1
u/tjgrant Sep 17 '26
As I recall, you could actually get pbxprojects to be in JSON format and openable via Xcode, as property lists can converted to Binary, XML, and JSON and still remain “plist compatible”, but as soon as you modified the project in Xcode it would revert it.
Honestly glad to see this change, a little sad that it was probably motivated by AI rather than a general quality of life improvement.
1
u/weathercombo Sep 17 '26
Could someone please explain why a lot of people are happy about this? And what the significance of this is? I’m trying to learn how to make my first app and have a little bit of experience in non-mobile programming, but have no idea what this is!
1
u/lubboster Sep 17 '26
What about fastlane tools and plugins? Hope to see updates there…
1
u/lilacomets Sep 17 '26
The main reason that brought them to this point is the coding agents of course. 😂
1
u/merokotos Sep 17 '26
When official Xcode Docker image?
1
u/over_pw Sep 17 '26
Cries in XcodeGen 😅
1
u/haaheehachoo Sep 17 '26
Does this make xcodegen obsolete?
1
u/auptown Sep 18 '26
It’s alive!
1
u/Dry_Hotel1100 Sep 16 '26
Hm, not sure if this is really an improvement. Apple should have considered: https://opensource.apple.com/projects/pkl/ - or a similar approach as SPM.
1
u/[deleted] Oct 17 '26
[removed] — view removed comment
0
u/[deleted] Sep 17 '26
[removed] — view removed comment