What problem does it solve?
This Skill ensures that after you create any Swift, Objective-C, C, C++, or header file inside a directory containing an .xcodeproj, you must run a special script to register it with the project. Without this step, the file will not appear in Xcode or compile.
Core Features & Use Cases
- Mandatory post-create registration: Run the add_to_xcode.rb script after creating source files to update the Xcode project.
- Wide file type support: Covers .swift, .m, .mm, .c, .cpp files (headers .h are read-only in the build, but still supported for reference).
- Use Case: After adding a new file to your Xcode project, execute the script to ensure it appears in the navigator and is compiled.
Quick Start
Run the post-file creation command to register your new file with the Xcode project, replacing <filepath> with your actual file path:
ruby ${CLAUDE_PLUGIN_ROOT}/skills/add-to-xcode/scripts/add_to_xcode.rb <filepath>