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/xpccachectl
and 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
Uncrustifier
andUncrustify
target: 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
Uncrustifier.app/Contents/PlugIns/Uncrustify.appex/Contents/Resources/uncrustify.cfg
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!