Most active commenters

    ←back to thread

    Claude Sonnet will ship in Xcode

    (developer.apple.com)
    485 points zora_goron | 14 comments | | HN request time: 0.209s | source | bottom
    1. 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 #
    2. kelnos ◴[] No.45059119[source]
    How so? I don't use xcode, but I much prefer having an agent in its own "app" so to speak.
    replies(1): >>45059663 #
    3. 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 #
    4. 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 #
    5. jacurtis ◴[] No.45059456[source]
    Agreed. Claude Code is an amazing experience with Jetbrains IDEs, but for some reason Xcode just hates having claude directly edit the files.
    replies(1): >>45060246 #
    6. oefrha ◴[] No.45059530[source]
    The annoying thing is the official Swift extension can sometimes flag errors in perfectly fine code with zero problem in Xcode. So I’m forced to live with persistent “errors” when editing in VS Code/Cursor.
    7. jama211 ◴[] No.45059663[source]
    Likely so it can auto suggest, directly edit code, integrate properly etc
    8. spike021 ◴[] No.45059691[source]
    if i could just get claude to properly remember it can directly edit the xcode project file, that'd be great.

    for whatever reason it ignores my directive that it can from the CLAUDE file at least half the time. one time it even decided it needed to generate a fancy python script to do it. bizarre.

    9. isodev ◴[] No.45059779[source]
    Same, only it's Zed for me and Claude Code in a terminal
    10. folli ◴[] No.45060246[source]
    How do you use it with Jetbrains? Junie? Or just as a separate CLI session?
    replies(1): >>45060321 #
    11. xwowsersx ◴[] No.45060321{3}[source]
    They might be referring to the plugin https://plugins.jetbrains.com/plugin/27310-claude-code-beta-
    12. hellonoko ◴[] No.45060722[source]
    You can use VSCode and XCode will automatically update when the files change.
    13. rusinov ◴[] No.45061647[source]
    What was your problem with it? I see it running in a terminal more convenient (can point it to read local files outside of a project folder, for example)
    14. Terretta ◴[] No.45074259{3}[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.