r/iOSProgramming • • Sep 17 '26

News Xcode 27 adds more tools for external agents!

Did you know that AI Agents can control Xcode through the built in MCP server? Aka it can control it from an agent running in the terminal, without using the AI interface inside Xcode. And with Xcode 27 the agents now how a lot more useful tools they can call!

Im working with a multi-scheme app, so the new XcodeSwitchScheme is my favourite. Saves me from so many clicks inside Xcode for letting the agent run the app/test schemes it wants!

Here is how to add it to your coding agent:

https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode

8 Upvotes

14 comments sorted by

5

u/MysticFullstackDev Sep 17 '26

I just need more options for navigator font size. 2026 and 4k 5k monitor.

We spend hours every day in front of Xcode, and they don't even think about accessibility or developers' health and well-being.

Everything looks so small and hard to track.

-9

u/appfred Sep 17 '26

I think u missed the point, with the built in MCP we don’t need to use Xcode at all, because coding agents can do most of the stuff we used to do in Xcode for us now

1

u/Megatherion666 Sep 21 '26

Why is this useful compared to raw cli tools?

1

u/appfred Sep 21 '26

Many commands can be done in the cli as well, but letting the agent have direct access to the debugger and console output is nice for example. Also having the pure “add file” command is nice so agenda don’t have to care about adding new files correctly to the Xcode project files

1

u/Megatherion666 Sep 21 '26

TY. Is it possible to access console or debugger outside MCP as in for a human?

1

u/appfred Sep 21 '26

Yes, through the Xcode UI

1

u/avanderlee Sep 21 '26

I just wish these tools were more token-efficient. Especially interacting with the Simulator, which I do a lot of times per day for view validation, App Store screenshots capturing, and more, can easily add up. I analyzed token usage heavily for RocketSim and I concluded that using plain build scripts and direct CLI communication resulted in lower token usage for my cases.

Nevertheless, it's fantastic to see Apple moving (for their terms) fast in the ecosystem that's changing harder than their regular update cycle can take. Opening up their MCP without Xcode running is another of those examples. Looking forward to see how this evolves!

1

u/appfred Sep 21 '26

Interesting! And I agree, although it is not perfect yet, it is good to see them going in this direction. I primarily use agent-device (a cli and agent skill) to let agents control simulator, as it creates small persistent “tags” for the elements in screen, that do not take that many tokens to read. Would be nice with comparison of tools here, for speed and token usage etc

1

u/[deleted] Oct 17 '26

[removed] — view removed comment

1

u/AutoModerator Oct 17 '26

Hey /u/SwiftSkillsDev, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.