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

cannot build for Xcode 6.3.2 (10.10.3) #85

Closed nyotis closed 9 years ago

nyotis commented 9 years ago

i was using tool properly for previous versions, can anyone confirm successful build for latest Xcode?

adamwangxx commented 9 years ago

I have same trouble with you,I can't see the Clang-format in Xcode -> Edit but sometimes when I save the file plugin could work sometimes it doesn't work.

carloe commented 9 years ago

If you are compiling ClangFormat from source you need to add the DVTPlugInCompatibilityUUID of Xcode 6.3.2 to ClangFormat-Info.plist. Get the Xcode UUID by running the following command in your terminal:

defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

Then open ClangFormat.xcodeproj, select ClangFormat-Info.plist, add the UUID from above as a new item under DVTPlugInCompatibilityUUIDs.

adamwangxx commented 9 years ago

@carloe It works,Thank you very much!

nyotis commented 9 years ago

@carloe it's not working for me - i do restart xcode

carloe commented 9 years ago

@nyotis did you run the project after you added the UUID, but before you restarted Xcode? If you had previously installed ClangFormat via Alcatraz you may also need to remove the plugin from within Alcatraz before you add it manually, but I am not sure.

slcott commented 9 years ago

I have similar issues. I received a warning from XCode about plugins when restarting the application after updating to Version 6.3.2 (6D2105). I removed the plugin from the alcatraz "package manager" menu within XCode. I made sure that the plugin was manually removed from /Users/slcott/Library/Application Support/Developer/Shared/Xcode/Plug-ins as well as from /Users/slcott/Library/Application Support/Alcatraz/Plug-ins . I restarted XCode. Then reinstalled ClangFormat-Xcode and restarted XCode again. After all this, the formatter still did not appear in the "edit" menu.

tonyarnold commented 9 years ago

Hi guys, I've added the DVTPlugInCompatibilityUUID for Xcode 6.3.2 to the repo — a quick rebuild should fix the problems you're having.

Fixed by 937ef3894ef75ceadf3a46d98067107fcabec776.

slcott commented 9 years ago

It works for me now. Thanks!

zizicici commented 9 years ago

Xcode 6.3.2 is different from other versions. After Xcode 6.3.2 installed, Xcode will find the plug-ins folder, if some plug-ins have the same DVTPlugInCompatibilityUUID for 6.3.2, Xcode will ask user to choose "Load Bundle" or "Skip Bundle", and "Skip Bundle" is recommended by Xcode. If user choose "Skip Bundle", the plug-ins would not working, although they have the right DVTPlugInCompatibilityUUID.

nyotis commented 9 years ago

sure, it works fine now

On Sat, May 23, 2015 at 12:58 AM, beimen notifications@github.com wrote:

Xcode 6.3.2 is different from other versions. After Xcode 6.3.2 installed, Xcode will find the plug-ins folder, if some plug-ins have the same DVTPlugInCompatibilityUUID for 6.3.2, Xcode will ask user to choose "Load Bundle" or "Skip Bundle", and "Skip Bundle" is recommended by Xcode. If user choose "Skip Bundle", the plug-ins would not working, although they have the right DVTPlugInCompatibilityUUID.

— Reply to this email directly or view it on GitHub https://github.com/travisjeffery/ClangFormat-Xcode/issues/85#issuecomment-104794842 .