travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

build fails if Xcode is not /Applications/Xcode.app #36

Closed stevehartwell closed 2 months ago

stevehartwell commented 10 years ago

The build assumes /Applications/Xcode.app to link against IDE framework(s), which is usually true but not always--Xcode.app is completely self-contained so it works fine if it's renamed or in another location.

You can get the path to the currently running Xcode through various build environment variables.

Thanks for making this very nice plugin!