Apple brings ChatGPT and other AI models to Xcode



At WWDC 2025, Apple released a new version of Xcode, its app development suite, that integrates OpenAI’s ChatGPT for coding, doc generation, and more. The company also announced that developers can use API keys to bring AI models from other providers to Xcode for AI-powered programming suggestions.

“Developers can connect [AI] models directly into their coding experience to write code, tests, and documentation; iterate on a design; fix errors; and more,” said the company in a blog post about the new version of Xcode, Xcode 26.

Xcode
Image Credits:Apple

With the new AI integrations in Xcode, developers can use tools to generate a preview of code or handle other tasks. Developers can tap ChatGPT in Xcode without creating an account; paid ChatGPT users can connect their accounts to increase the rate limits.

In other AI-related news today, Apple also launched the Foundation Models framework to let developers tap into the company’s AI models running on-device. The company said that developers need to write just three lines of code to access these models. Plus, it added that you can also run local models on Apple Silicon-powered devices.

Apple was rumored to release a vibe-coding software in partnership with Anthropic. However, ChatGPT was Apple’s choice at the end.

Notably, Apple demoed Swift Assist, a coding assistant for Xcode, last year, but it wasn’t released widely.




Source