A command line tool for managing Xcode projects, including asset management and color conversion.
Usage
Build
make build
Install
go install github.com/tbxark/xcode-tool/cmd/xct@latest
CLI
Rename Assets
Rename asset files in .imageset directories to match the asset name.
xct rename-asset ./path/to/project/Assets.xcassets
Clean Assets
Find and report unused image assets by scanning Swift files.
xct clean-asset ./path/to/project/Sources
Convert Hex Color
Convert a hex color string to UIColor format.
xct hex 232323
xct hex '#FF5733'
Replace Hex Colors
Replace UIColor(hexString:) calls with UIColor(red:green:blue:alpha:) in Swift files.
xct replace-hex ./path/to/project
License
xcode-tool is licensed under the MIT License. See the LICENSE file for more details.