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 install on Xcode 8 #123

Closed christophefondacci closed 6 years ago

christophefondacci commented 8 years ago

When trying to run ClangFormat on Xcode 8 to install the plugin it says: Message from debugger: cannot attach to process due to System Integrity Protection

It works fine with Xcode 7.3. I don't want to disable SIP just for that but would love to be able to use ClangFormat on Xcode 8.

Any help / workaround? Thanks.

I tried the suggestion from #85 but same error.

tonyarnold commented 8 years ago

I talked to a number of engineers about this while at WWDC last week: there's no path forward for any existing Xcode plugin after Xcode 8 is released. Short of disabling SIP (don't do this), Xcode will not load third party xcplugins anymore.

It might be possible to write a simplified version of Clang Format using the new Source Editor Extension API.

ferrytt commented 7 years ago

@kkaefer Thanks a lot,U are 666 in Chinese.

lichon commented 7 years ago

You can unsign the xcode binary to load the bundles ref to : https://github.com/XVimProject/XVim/issues/988

travisjeffery commented 6 years ago

Updated docs for Xcode 8: https://github.com/travisjeffery/ClangFormat-Xcode#installation