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

New Things Your iPhone Can Do in iOS 18

18 New Things Your iPhone Can Do in iOS 18.2

Wednesday November 27, 2024 5:05 am PST by
Apple is set to release iOS 18.2 in early December, bringing the second round of Apple Intelligence features to iPhone 15 Pro and iPhone 16 models. This update brings several major advancements to Apple's AI integration, including completely new image generation tools and a range of Visual Intelligence-based enhancements. There are a handful of new non-AI related feature controls incoming as...
Whatsapp Feature

WhatsApp to Drop Support for These iPhones Starting May 2025

Monday December 2, 2024 2:57 am PST by
WhatsApp is set to end support for iOS versions older than iOS 15.1 from May next year, removing the chat platform's compatibility with several iPhone models in the process. From May 5, 2025, WhatsApp will no longer be compatible with iPhone 5s, iPhone 6, and iPhone 6 Plus models. Users with those devices won't be able to access the encrypted chat service after the specified date unless they ...
Apple AI Command Center Concept Mock 3

Apple Expected to Launch This All-New Device Next Year

Wednesday November 27, 2024 1:05 pm PST by
Apple is expected to kick off 2025 by launching an all-new smart home hub, also referred to as a "command center," as early as March. The hub is expected to feature around a six-inch display that can be attached to a tabletop base with a speaker, or mounted on a wall. The device is said to run a new "homeOS" operating system with a customizable widget-focused home screen, and it is expected...
iphone 16 pro models 1

12 Reasons to Wait for Next Year's iPhone 17

Friday November 29, 2024 5:17 am PST 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 sometimes get rumored feature leaks so far ahead of launch. The iPhone 17 series is no different – already we have some idea of what to expect from Apple's 2025 smartphone lineup. If you plan to skip...
airpods pro 2 gradient

AirPods Pro 3 Expected Next Year: Here's What We Know

Thursday November 28, 2024 3:30 am PST by
Despite being released over two years ago, Apple's AirPods Pro 2 continue to dominate the wireless earbud market. However, with the AirPods Pro 3 expected to launch sometime in 2025, anyone thinking of buying Apple's premium earbuds may be wondering if the next generation is worth holding out for. Apart from their audio and noise-canceling performance, which are generally regarded as...
iPhone 17 Pro Dual Tone Rectangle Feature 1

iPhone 17 Pro Already Rumored to Have These 8 New Features

Wednesday November 27, 2024 12:19 pm PST by
While the iPhone 17 Pro and iPhone 17 Pro Max are not expected to launch for 10 more months, there are already plenty of rumors about the devices. An imaginative iPhone 17 Pro concept based on rumors Below, we recap key changes rumored for the iPhone 17 Pro models so far: Aluminum frame: iPhone 17 Pro models are rumored to have an aluminum frame, whereas the iPhone 15 Pro and iPhone 16 Pro ...
Cyber Monday Deals Feature 2022

Apple Cyber Week Deals Available Now: AirPods, iPads, and More

Sunday December 1, 2024 7:52 am PST by
Although Black Friday has ended, Cyber Week is here and you can find great deals on numerous Apple devices right now. This includes big savings on AirPods, Apple Watch, MacBook Air, iPad, and more. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site running. Specifically,...
Flip iPhone Thumb 1

Apple's 2026 Foldable iPhone Could Reinvigorate Stalling Market

Monday December 2, 2024 4:04 pm PST by
The foldable smartphone market has stalled with customer interest in foldables waning, but that could change when Apple debuts a foldable iPhone, according to display analyst Ross Young. In a report on the current foldable smartphone market, Young says that Apple is expected to "enter the foldable market" in the second half of 2026. Apple's "dominant position in flagship smartphones" could...

Top Rated Comments

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