zoukankan      html  css  js  c++  java
  • Xcode升级导致插件失效的解决办法

    每次升级Xcode 插件都不翼而飞了,让我们这些酷爱插件的程序员很是头疼,今天就学习了下如何简单快速的恢复上个版本已有的插件

    通过终端打印xcode的UUID,然后加入到插件中的的info.plist文件中的

    接下来是详细的步骤
    1.关闭Xcode.
    2.打开终端,输入:tail -f /var/log/system.log
    3.别关闭终端,此时重新打开Xcode,就会看到终端不断的打印出log内容
    [MT] PluginLoading: Required plug-in compatibility UUID9F75337B-21B4-4ADC-B558-F9CADF7073A7 for plug-in at path‘~/Library/ApplicationSupport/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin’ notpresent in DVTPlugInCompatibilityUUIDs
    从中就可以发现,你运行的Xcode的UUID是多少 *************
    4.打开任一文件夹,从菜单栏中选择前往文件夹,输入地址
     ~/Library/ApplicationSupport/Developer/Shared/Xcode
    5.进入Plug-ins,你就可以发现,你所有安装的Xcode插件都在这里,选择你要修复的插件,右键,选择"显示包内容",进入Contents,就可以看到插件的Info.plist文件
    6.打开info.plist,找到DVTPlugInCompatibilityUUIDs一栏,选择添加一个子项,然后把你刚刚在终端看到的XcodeUUID复制到新增的子项中.
    7.关闭Xcode,重新打开,会受到提示,选择load bundle 选项
    8.成功!!
     
    更有大神说一句话搞定,大家也可试试: find ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add 9F75337B-21B4-4ADC-B558-F9CADF7073A7
     
  • 相关阅读:
    PHP图像处理
    PHP文件上传
    PHP文件编程
    PHP面向对象
    【Codeforces Round #694 (Div. 1) B】Strange Definition
    【Codeforces Round #694 (Div. 2) C】Strange Birthday Party
    【Codeforces Round #693 (Div. 3) F】New Year's Puzzle
    【Codeforces Round #693 (Div. 3) G】Moving to the Capital
    【Codeforces Round #695 (Div. 2) E】Distinctive Roots in a Tree
    【Codeforces Round #695 (Div. 2) D】Sum of Paths
  • 原文地址:https://www.cnblogs.com/zero-zql/p/4661597.html
Copyright © 2011-2022 走看看