https://github.com/tbxark/xcode-tool
A collection of useful tools for Xcode projects.
https://github.com/tbxark/xcode-tool
macos xcode
Last synced: 4 months ago
JSON representation
A collection of useful tools for Xcode projects.
- Host: GitHub
- URL: https://github.com/tbxark/xcode-tool
- Owner: TBXark
- License: mit
- Created: 2020-11-12T10:32:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-14T05:15:19.000Z (4 months ago)
- Last Synced: 2025-11-14T07:03:07.144Z (4 months ago)
- Topics: macos, xcode
- Language: Go
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xcode-tool
A command line tool for managing Xcode projects, including asset management and color conversion.
## Usage
### Build
```sh
make build
```
### Install
```sh
go install github.com/TBXark/xcode-tool/cmd/xct@latest
```
### CLI
#### Rename Assets
Rename asset files in `.imageset` directories to match the asset name.
```sh
xct rename-asset ./path/to/project/Assets.xcassets
```
#### Clean Assets
Find and report unused image assets by scanning Swift files.
```sh
xct clean-asset ./path/to/project/Sources
```
#### Convert Hex Color
Convert a hex color string to UIColor format.
```sh
xct hex 232323
xct hex #FF5733
```
#### Replace Hex Colors
Replace `UIColor(hexString:)` calls with `UIColor(red:green:blue:alpha:)` in Swift files.
```sh
xct replace-hex ./path/to/project
```
## License
**xcode-tool** is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.