add_file_to_project
Add a file to the active Xcode project by specifying its path, optional group, and target name.
Instructions
Adds a file to the active Xcode project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group path within the project to add the file to (e.g., 'MyApp/Models'). If not provided, will add to the root group. | |
| filePath | Yes | Path to the file to add to the project | |
| targetName | No | Name of the target to add the file to. If not provided, will try to add to the first target. | |
| createGroups | No | Whether to create intermediate groups if they don't exist (default: true) |