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

iPadOS 26 App Windowing

Apple Explains Why iPads Don't Just Run macOS

Friday June 13, 2025 7:46 am PDT by
iPadOS 26 allows iPads to function much more like Macs, with a new app windowing system, a swipe-down menu bar at the top of the screen, and more. However, Apple has stopped short of allowing iPads to run macOS, and it has now explained why. In an interview this week with Swiss tech journalist Rafael Zeier, Apple's software engineering chief Craig Federighi said that iPadOS 26's new Mac-like ...
iphone 16 pro models 1

17 Reasons to Wait for the iPhone 17

Thursday June 12, 2025 8:58 am PDT by
Apple's iPhone development roadmap runs several years into the future and the company is continually working with suppliers on several successive iPhone models simultaneously, which is why we often get rumored features months ahead of launch. The iPhone 17 series is no different, and we already have a good idea of what to expect from Apple's 2025 smartphone lineup. If you skipped the iPhone...
Logitech Logo Feature

Logitech Announces Two New Accessories for WWDC

Friday June 13, 2025 7:22 am PDT by
Alongside WWDC this week, Logitech announced notable new accessories for the iPad and Apple Vision Pro. The Logitech Muse is a spatially-tracked stylus developed for use with the Apple Vision Pro. Introduced during the WWDC 2025 keynote address, Muse is intended to support the next generation of spatial computing workflows enabled by visionOS 26. The device incorporates six degrees of...
iOS 26 Screens

Here Are All the iOS 26 Features That Require iPhone 15 Pro or Newer

Thursday June 12, 2025 4:53 am PDT by
With iOS 26, Apple has introduced some major changes to the iPhone experience, headlined by the new Liquid Glass redesign that's available across all compatible devices. However, several of the update's features are exclusive to iPhone 15 Pro and iPhone 16 models, since they rely on Apple Intelligence. The following features are powered by on-device large language models and machine...
apple beta 26 lineup

Apple 'Sherlocked' These Apps at WWDC 2025

Wednesday June 11, 2025 7:14 am PDT by
Apple at WWDC previewed a bunch of new features coming in its updated operating systems, but certain changes will have been met with dismay by third-party developers who already offer apps with equivalent or similar features. In other words, their product has been "sherlocked" by Apple. When Apple creates an app or a feature that has functionality found in a third-party app, it is referred...
maxresdefault

Everything Apple Announced at WWDC 2025 in 10 Minutes

Monday June 9, 2025 5:21 pm PDT by
At today's WWDC 2025 keynote event, Apple unveiled a new design that will inform the next decade of iOS, iPadOS, and macOS development, so needless to say, it was a busy day. Apple also unveiled a ton of new features for the iPhone, an overhauled Spotlight interface for the Mac, and a ton of updates that make the iPad more like a Mac than ever before. Subscribe to the MacRumors YouTube channel ...
iOS 26 on Three iPhones

Hate iOS 26's Liquid Glass Design? Here's How to Tone It Down

Wednesday June 11, 2025 4:22 pm PDT by
iOS 26 features a whole new design material that Apple calls Liquid Glass, with a focus on transparency that lets the content on your display shine through the controls. If you're not a fan of the look, or are having trouble with readability, there is a step that you can take to make things more opaque without entirely losing out on the new look. Apple has multiple Accessibility options that ...
CarPlay Liquid Glass Dark

Apple to Let iPhone Users Watch Videos on CarPlay Screen While Parked

Thursday June 12, 2025 6:16 am PDT by
Apple this week announced that iPhone users will soon be able to watch videos right on the CarPlay screen in supported vehicles. iPhone users will be able to wirelessly stream videos to the CarPlay screen using AirPlay, according to Apple. For safety reasons, video playback will only be available when the vehicle is parked, to prevent distracted driving. The connected iPhone will be able to...

Top Rated Comments

NightFox Avatar
8 months ago
The day that AI acquired the concept of the solar system without the Earth :oops:
Score: 9 Votes (Like | Disagree)
Seoras Avatar
8 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
8 months ago
...so this is live before Swift Assist ? ?
Score: 3 Votes (Like | Disagree)
johnsawyercjs Avatar
8 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
8 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
8 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)