OpenAI's ChatGPT for Mac Now Works With Xcode

The ChatGPT app for Mac is now able to integrate with coding apps like Xcode, VS Code, TextEdit, and Terminal, simplifying workflows where developers copy and paste their code from a coding app into ChatGPT.

open ai logo
When ChatGPT is given permission to interact with an app like Xcode through a new Work with Apps feature, a selection of code can be sent directly to ChatGPT alongside a prompt. TechCrunch had a demo of the feature, and described how it works:

In a demo with TechCrunch, an OpenAI employee opened the ChatGPT app and an Xcode environment containing a simple project modeling the solar system - although it was missing the Earth. The employee selected an Xcode tab within ChatGPT, which tells the AI chatbot to look at the app, and prompted the chatbot to "add the missing planets." The chatbot was able to complete the task, writing a line of code to represent the Earth that matched the rest of the project's format.

Back in October, GitHub brought Copilot integration to Xcode, with Copilot providing coding assistance right in the app. ChatGPT's integration is not that deep, and it is not able to write code in Xcode. ChatGPT is instead using the macOS Accessibility API for screen readers that allows apps to read text, which also means that it cannot interpret images or videos.

The new ChatGPT for Mac feature is available for ChatGPT Plus and ChatGPT Teams users starting today, with Enterprise and Edu support coming in the near future. Going forward, OpenAI plans to bring this integration to other apps.

Popular Stories

carplay hero dashboard

iOS 26 to Upgrade CarPlay in Two Ways

Wednesday June 4, 2025 6:24 am PDT by
While the spotlight has been on CarPlay Ultra lately, the regular version of CarPlay is set to receive some enhancements alongside iOS 26. Apple will announce iOS 26 at WWDC 2025 next week, and the software update is expected to upgrade the CarPlay experience in at least two ways. The first iOS 26 beta should be seeded to developers shortly after Apple's keynote, and the update will...
sebastian de with living glass

Ex-Apple Designer Reveals 'Living Glass' iOS 26 Concepts

Wednesday June 4, 2025 4:17 am PDT by
Designer Sebastiaan de With has published an impressive preview of what Apple's rumored iOS redesign might look like, complete with detailed mockups and a design philosophy that he believes could reshape how users interact with their devices. With WWDC just days away, de With – co-founder of photography app maker Lux and former Apple designer – has created what he calls "Living Glass"...
iOS 26 Mock Rainbow Feature

iOS 26: All the New Features We Expect

Tuesday June 3, 2025 4:49 pm PDT by
The 2025 Worldwide Developers Conference is coming up quick, with less than a week to go before the big keynote event. We're sharing a series of rumor recaps this week, for those who want to get a sneak peek at some of the features expected in Apple's upcoming software updates. iOS 26 is definitely the OS that we've heard the most about, and rumors suggest that it's going to get a major...
General iOS Mail Feature

iPhone Users Say Mail App Suddenly Showing Blank Screen on iOS 18.5

Thursday June 5, 2025 7:02 am PDT by
If the Mail app on your iPhone is not working lately, you are not alone. A growing number of iPhone users are seeing a blank screen in the Mail app, according to comments posted across the MacRumors Forums, Reddit, Apple Support Community, and other online discussion platforms. Affected users are unable to view any emails in their inboxes, and the app can also become glitchy and...
Apple Activity Rings Graphic

Apple Watch Gets One Crucial Fitness Metric Wrong, Researchers Say

Thursday June 5, 2025 7:35 am PDT by
The Apple Watch provides highly accurate measurements of heart rate and step count, but their estimates of calories burned can be significantly off, according to a new peer-reviewed meta-analysis conducted by researchers at the University of Mississippi (via CNET). The study reviewed 56 previously published studies evaluating the Apple Watch's performance against gold-standard clinical tools ...
General Apps Messages Redux

iOS 26: New Messages and Phone App Features Leaked Ahead of WWDC

Friday June 6, 2025 7:27 am PDT by
Apple is planning to announce several new features for the Messages and Phone apps on iOS 26, according to Bloomberg's Mark Gurman. In a lengthy report outlining his WWDC 2025 expectations today, Gurman said that the two main changes in the Messages app will be the ability to create polls, as well as the option to set a background image within a conversation. 9to5Mac was first to report...
iOS 26 Mock Rainbow Feature

Apple Notes Expected to Gain Support for Exporting in Markdown in iOS 26

Wednesday June 4, 2025 4:37 am PDT by
Apple's Notes app is rumored to be getting limited Markdown support in iOS 26 and macOS 26, according to 9to5Mac. The feature would allow users to export text in the markdown format. Markdown is a lightweight markup language that some writers prefer to use over rich text. Rather than using HTML for bold, italics, links, and headers, Markdown uses quick character shortcuts like **bold** or...
iCloud General Feature Redux

iPhone Users Who Pay for iCloud Storage Received a New Perk This Year

Sunday June 1, 2025 9:26 am PDT by
If you pay for iCloud storage on your iPhone, Apple introduced an additional perk for you this year, at no additional cost. The perk is the ability to create invitations in the Apple Invites app for the iPhone, which was released in the App Store in February. In the Apple Invites app, iCloud+ subscribers can create invitations for any occasion, such as birthday parties, graduations, baby...

Top Rated Comments

NightFox Avatar
7 months ago
The day that AI acquired the concept of the solar system without the Earth :oops:
Score: 9 Votes (Like | Disagree)
Seoras Avatar
7 months ago
Oh happy day! I've spent the last year cutting and pasting between them.
Android Studio too. I find OpenAI's models better than Gemini.
There is a 3rd party studio plugin for other models like ChatGPT but there's a significant markup in query cost for using it.
Score: 5 Votes (Like | Disagree)
PsykX Avatar
7 months ago
...so this is live before Swift Assist ? ?
Score: 3 Votes (Like | Disagree)
johnsawyercjs Avatar
7 months ago
To activate the settings to get this to work, if you're using the ChatGPT app (I don't see any settings related to this new feature when accessing ChatGPT using a web browser), install the latest version of the app, then go to its Settings > Work with Apps, enable the option, then also select here "Manage Apps". Selecting an app from the list that will appear will open macOS's System Settings > Privacy & Security > Accessibility pane. Make sure ChatGPT is listed here, then slide its slider to the right. Then back in macOS System Settings > Privacy & Security, open Screen & System Audio Recording, make sure ChatGPT is listed, and slide its slider to the right.

Unfortunately when I followed these steps, including relaunching the ChatGPT app, GPT 4o said it was unable to read what I'd typed into a TextEdit window (just a simple "Hi there!") since it said it didn't have that capability. I switched to GPT o1 preview to see if that would help, then I pointed out that it was supposed to have this capability as of today, and told it to try again, and this time after a web search it acknowledged this new capability, and it tried to read the contents of the TextEdit window but failed:


Certainly! Since you’ve enabled the Work with Apps feature, I’ll attempt to access the content of your open TextEdit window.

[Attempting to retrieve content…]

It appears I couldn’t retrieve the content from TextEdit. Please ensure that all necessary permissions are granted and that the application is properly configured. If you’d like, you can also paste the text here, and I’ll be happy to assist you with it.
ChatGPT then refused to acknowledge that this new app-reading feature exists, even though it had acknowledged it just a few minutes earlier, this time offering its old excuse that it knows nothing beyond its last knowledge cutoff date, currently Oct 2023.

Edit: got it to work. The remaining step, not really explained in the article and not explained by ChatGPT at all, is to look down at the bottom of the ChatGPT window where the row of buttons appears, find the new button that looks like a cursor arrow pointing to the middle of a dashed square, click on it, then in the popup that appears which lists the apps this works with, click the + to the right of the name of the app(s) you want to work with. Then ask ChatGPT to read the open window in the app, giving it the name of the app you want it to look at.
Score: 2 Votes (Like | Disagree)
TechnoMonk Avatar
7 months ago
Apple and open AI just Sherlocked third party plugins and API wrappers that did this on Mac.
Score: 1 Votes (Like | Disagree)
macduke Avatar
7 months ago
Ok I like chatGPT more than most people around here seem to, but there’s no shot I’m giving it direct terminal access!
Score: 1 Votes (Like | Disagree)