manipulate-xcodeproj
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseManipulate Xcodeproj
操作Xcode项目
Overview
概述
Use for all project edits and asset catalog operations. Install it with if it is not already available.
xcpbrew install xcp所有项目编辑和资源目录操作均使用工具。如果尚未安装,可通过进行安装。
xcpbrew install xcpWorkflow
工作流程
- Identify the or
.xcodeprojpath..xcassets - For target-specific actions, run first.
xcp list-targets - Run the appropriate subcommand. Use
xcpto update the project file without touching the filesystem.--project-only - Re-run or
xcp list-targetsif you need to verify results.xcp list-assets
- 确定或
.xcodeproj的路径。.xcassets - 针对特定目标的操作,先运行。
xcp list-targets - 运行相应的子命令。使用
xcp参数可仅更新项目文件,而不修改文件系统。--project-only - 若需验证结果,可重新运行或
xcp list-targets。xcp list-assets
Tasks
任务
Project structure
项目结构
Use group and file subcommands to add, move, rename, or delete entries. Use when adding and when you want the tool to infer targets for a new file.
--create-groups--guess-target使用组和文件子命令来添加、移动、重命名或删除条目。添加时使用参数,若希望工具自动推断新文件的目标,可使用参数。
--create-groups--guess-targetTargets and build settings
目标与构建设置
Use to discover names, to update file memberships, and build-setting commands to read or update configuration values.
list-targetsset-target使用命令查看目标名称,命令更新文件的目标归属,通过构建设置命令读取或更新配置值。
list-targetsset-targetAsset catalogs
资源目录
Operate on directories directly for image, data, and color assets. Paths are relative to the root.
.xcassets.xcassets直接对目录进行操作,处理图片、数据和颜色资源。路径为相对于根目录的相对路径。
.xcassets.xcassetsReferences
参考资料
- Command and flag reference:
references/xcp-cli.md - For flags and usage specifics, prefer as the source of truth.
xcp help <subcommand>
- 命令与参数参考:
references/xcp-cli.md - 关于参数和使用细节,以作为权威来源。
xcp help <subcommand>