View in English

  • 打开菜单 关闭菜单
  • Apple Developer
搜索
关闭搜索
  • Apple Developer
  • 新闻
  • 探索
  • 设计
  • 开发
  • 分发
  • 支持
  • 账户
在“”范围内搜索。

快捷链接

5 快捷链接

视频

打开菜单 关闭菜单
  • 专题
  • 相关主题
  • 所有视频
  • 关于

返回 Tech Talks

  • 简介
  • 转写文稿
  • 了解 Xcode 中的智能体编码

    探索 Xcode 26.3 如何与 OpenAI Codex 和 Claude Agent 等编码智能体无缝集成,协同处理复杂的多步骤任务。了解 Xcode 如何助力编码智能体构建项目、运行测试并搜索 Apple 文档,所有这些都基于模型上下文协议完成。

    资源

    • Giving external agentic coding tools access to Xcode
    • Setting up coding intelligence
    • Writing code with intelligence in Xcode
      • 高清视频
      • 标清视频
  • 搜索此视频…

    Hi, I’m Ken, I lead the Xcode team. With the release of Xcode 26.3, we’re super excited to introduce agentic coding in Xcode, powered by tools using the Model Context protocol. Xcode and coding agents can now work together to handle complex, multi-step tasks on your behalf. Let me show you. I’m working on the Landmarks sample app, which lets users explore interesting places around the world – like national parks and mountain ranges. Now I'm going to add a feature to show the current weather at a landmark. First, I'll open the intelligence settings. Now for this demo, I’ve already set up my Anthropic account and with just one click, I can download the Claude Agent and start coding.

    Then I’ll select Claude Agent to start a new conversation and describe what I want. Now I’d like to get weather data using WeatherKit and create a seven day forecast view with Liquid Glass.

    Xcode works with the agent to break down the task into smaller steps, making it easy to follow along and see exactly what's happening.

    Next, the agent familiarizes itself with my project, looking at files and structure and figuring out where to make changes. Here, the agent searches Apple’s documentation for Liquid Glass, since I mentioned that in my prompt. Xcode provides a documentation tool that pulls in relevant code snippets and samples so the agent can generate modern code using the latest APIs.

    And the agent can do more than just generate code. Here it’s adding an entitlement so I can use the WeatherKit API.

    Now it's creating a weather service class to fetch weather data. Creating the view to show the current weather for the landmark.

    Adding the seven day forecast overlay using Liquid Glass.

    And finally, building my project.

    But in this case it doesn't build on the first try. Models sometimes produce code with errors. Since Xcode provides a tool to list all the build errors, the agent can iterate quickly and fix them for me.

    And when it's done, I get a clear summary of all the changes. Now here's the new current weather view under the landmark title. And when I tap it, I get this beautiful view showing a seven day forecast with live weather data.

    Okay, so here’s what just happened – From a single request Xcode and the agent added the WeatherKit entitlement, integrated live weather data, created three new files with over 400 lines of code, built a beautiful Liquid Glass view, and did it all in just minutes.

    What would have taken me hours is now a great first draft, ready to review and refine. With the agentic coding, Xcode works autonomously toward your goal. It breaks down complex tasks into simpler steps, makes decisions based on your project architecture, and it uses the right tools to get things done. Xcode exposes its capabilities through the Model Context Protocol. This open standard gives you the freedom to use any MCP compatible agent or tool to work with Xcode.

    These capabilities are available in Xcode 26.3, and we'll be adding more in the future.

    And for developers using Anthropic Claude Code or OpenAI Codex, we built seamless integration directly into Xcode. You can download those coding agents with just a click, and they update automatically.

    We've also optimized token usage and tool calling so you get the best possible results.

    What used to require a back and forth between you, Xcode, and the model, it now happens automatically.

    Agents use Xcode tools to build, test, refine, and iterate so you can stay focused on building amazing features.

    That’s agentic coding in Xcode. Xcode 26.3 is available now.

    With agentic coding, there's never been a better time to bring your ideas to life.

Developer Footer

  • 视频
  • Tech Talks
  • 了解 Xcode 中的智能体编码
  • 打开菜单 关闭菜单
    • iOS
    • iPadOS
    • macOS
    • Apple tvOS
    • visionOS
    • watchOS
    打开菜单 关闭菜单
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    打开菜单 关闭菜单
    • 辅助功能
    • 配件
    • Apple 智能
    • App 扩展
    • App Store
    • 音频与视频 (英文)
    • 增强现实
    • 设计
    • 分发
    • 教育
    • 字体 (英文)
    • 游戏
    • 健康与健身
    • App 内购买项目
    • 本地化
    • 地图与位置
    • 机器学习与 AI
    • 开源资源 (英文)
    • 安全性
    • Safari 浏览器与网页 (英文)
    打开菜单 关闭菜单
    • 完整文档 (英文)
    • 部分主题文档 (简体中文)
    • 教程
    • 下载
    • 论坛 (英文)
    • 视频
    打开菜单 关闭菜单
    • 支持文档
    • 联系我们
    • 错误报告
    • 系统状态 (英文)
    打开菜单 关闭菜单
    • Apple 开发者
    • App Store Connect
    • 证书、标识符和描述文件 (英文)
    • 反馈助理
    打开菜单 关闭菜单
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program (英文)
    • Mini Apps Partner Program
    • News Partner Program (英文)
    • Video Partner Program (英文)
    • 安全赏金计划 (英文)
    • Security Research Device Program (英文)
    打开菜单 关闭菜单
    • 与 Apple 会面交流
    • Apple Developer Center
    • App Store 大奖 (英文)
    • Apple 设计大奖
    • Apple Developer Academies (英文)
    • WWDC
    获取 Apple Developer App。
    版权所有 © 2026 Apple Inc. 保留所有权利。
    使用条款 隐私政策 协议和准则