A simple Xcode 8 extension that wraps https://github.com/uncrustify/uncrustify/
- Build using Xcode 8+.
- If you are using macOS 10.11, run
sudo /usr/libexec/xpccachectland restart your machine.
- Replace /Uncrustify/uncrustify.cfg with your desired configuration file.
- Open Uncrustifier.xcodeproj and run the Uncrustify target. Choose Xcode as the host application.
- Make sure a valid team is set in both
Uncrustifytarget: Project > Targets > (Signing section) Team
- To install the extension, grab the latest release. When you open Uncrustifier.app, the extension will be added to XCode.
- You can change the configuration file without rebuilding by overwriting
Xcode > Editor > Uncrustify > Format Current Document
Hint: this works only for Objective-C files.
The extension will format the active file.
Feel free to send bugs or feature requests here.
Pull requests are also welcome!