if response.stop_reason != "tool_use": # 模型没要求调用工具,说明它认为任务结束了 return response.text
# 模型要求调用一个或多个工具 for tool_call in response.tool_calls: result = execute(tool_call) messages.append({ "role": "tool", "content": result }) # 进入下一轮,让模型看到工具结果,决定下一步
就这么二十行。这就是 Claude Code、Cursor、几乎所有 coding agent 的核心。
Minimize project file changes and avoid conflicts with buildable folder references. Convert an existing group to a buildable folder with the Convert to Folder context menu item in the Project Navigator. Buildable folders only record the folder path into the project file without enumerating the contained files, minimizing diffs to the project when your team adds or removes files, and avoiding source control conflicts. To use a folder as an opaque copiable resource, the default behavior before Xcode 16, uncheck the Build Folder Contents option in the File Inspector.
再配合Xcode Buildable Folders中所提到的To use a folder as an opaque copiable resource, the default behavior before Xcode 16, uncheck the Build Folder Contents option in the File Inspector.
其实,Apply Once to Folder就是Xcode 16之前的Folder,之前叫Folder Reference
(在Xcode 16之前,创建Folder时,官方名称就叫做Folder Reference)
Create groups with associated folders by default when using the New Group and New Group from Selection commands in the Project Navigator. To create a group without a folder, hold the Option key in the context menu to reveal the New Group without Folder variant of the command.
[Group without Folder] vs [Group] vs [Folder(Buildable Folder)] vs [Folder Reference]
特性
Group without Folder
Group
Buildable Folder
Folder Reference
Project Navigator 图标
是否对应磁盘目录
❌ 不必须
✅ 必须
✅ 必须
✅ 必须
工程结构是否可与磁盘不同
✅ 可以
❌ 基本一致
❌ 必须一致
❌ 必须一致
.pbxproj 是否记录每个文件
✅ 会
✅ 会
❌ 不会
❌ 不会
新增文件是否修改 .pbxproj
✅ 会
✅ 会
❌ 不会
❌ 不会
Git 冲突概率
高
高
低
低
是否参与编译系统
✅
✅
✅
❌
是否自动编译源码
✅
✅
✅(自动发现目录中的源码)
❌
Bundle 中是否保留目录结构
❌ 通常不会
❌ 通常不会
❌ 通常不会
会保留(如果被加入 Bundle)
默认是否进入 Bundle
❌ 否
❌ 否
❌ 否
仅在选中 Target 时自动加入
典型用途
逻辑分组
常规项目结构
源码目录
资源目录
当前(Xcode 26),默认的Group和Folder组合是Group with Folder + Buildable Folder。这可能也意味着这两项是日常最常用的
ERR Extension 'TME.continuecode CANNOT USE these API proposals 'extensionRuntime'. You MUST start in extension development mode or use the --enable-proposed-api command line flag