←back to thread

Claude Sonnet will ship in Xcode

(developer.apple.com)
485 points zora_goron | 2 comments | | HN request time: 0s | source
Show context
Archonical ◴[] No.45059076[source]
This is great. I've been using Xcode with a separate terminal to run Claude Code, which has been a painful setup.
replies(6): >>45059119 #>>45059260 #>>45059456 #>>45059691 #>>45060722 #>>45061647 #
spaceywilly ◴[] No.45059260[source]
I use VS Code with Claude Code, then I just use Xcode to build and launch
replies(3): >>45059454 #>>45059530 #>>45059779 #
1. heywoods ◴[] No.45059454[source]
I’m building my first iOS app ever so I know it has much more to do with me not understanding Xcode but getting builds to succeed after making changes with Claude code has been a nightmare. If you or anyone have any tips, guides, prayers, incantations for how to get changes in one to not clobber the other and leave me in xproj symlink hell I would be so grateful.
replies(1): >>45074259 #
2. Terretta ◴[] No.45074259[source]
> any tips, guides, prayers, incantations for how to get changes in one to not clobber the other

One caveman way:

1. Start your project using Xcode, use it to commit to GitHub, GitLab, whereever. In terminal, change into the dir that has the .git in it and launch claude.

2. Teach Claude Code your own system's path and preferred simulator for build testing. From then on it will build-test every change, so teach it to only commit after build passes. (By teach, I mean, just tell it, then from time to time, tell it to propose updates to claude.md in your project.)

3. Make sure before a PR or push that the project still builds in Xcode, if it doesn't, you can eyeball the changes in Xcode's staged changes viewer and undo them. If you change files via IDE, when you're back in Claude just say: I changed [specific/file, or "a lot of files"].

No xproj or symlinks get harmed in the making of your .swifts.