Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to new version of Xcode?

前端 未结 9 1398
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 19:40

Today I updated to Xcode 6.3.2 and I can\'t run the Clang code formatting – it seems like it\'s not even installed. Everytime I update Xcode, I have to reinstall Alcatraz and mo

9条回答
  •  借酒劲吻你
    2021-01-29 19:49

    It turns out, Xcode now has a whitelist / blacklist of bundles you enable. You can check it from the Terminal by running:

    $ defaults read com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-6.3.2
    {
    allowed =     {
    };
    skipped =     {
        "com.mneorr.Alcatraz" =         {
            version = 1;
        };
        "com.onevcat.VVDocumenter-Xcode" =         {
            version = 1;
        };
        "com.travisjeffery.ClangFormat" =         {
            version = 1;
        };
    };}
    

    The bad news is that the prompt to load the bundles won’t show again, even if you reinstall Alcatraz. The fix is simple though, just delete the whitelist / blacklist by running:

    defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-6.3.2
    

    and re-open Xcode to be prompted again (and this time make sure you click “Load Bundles”).

    Orignal post here: Re-enable Alcatraz on Xcode 6.3.2 or newer

提交回复
热议问题