• KSImageNamed 安装


    ## How do I use it?

    Build the KSImageNamed target in the Xcode project and the plug-in will automatically be installed in `~/Library/Developer/Xcode/Plug-ins`. Relaunch Xcode and `imageNamed:` will magically start autocompleting your images.

    **Important**: Old versions of KSImageNamed were installed in `~/Library/Developer/Application Support/Developer/Shared/Xcode/Plug-ins`. Make sure to remove `KSImageNamed.xcplugin` from there before installing the new one.

    ## How do I include file extensions when autocompleting?

    Enter the following command and relaunch Xcode:
    `defaults write com.apple.dt.Xcode KSShowExtensionInImageCompletion -bool YES`

    以上是官方文档
    在第一次安装的时候切记在跳出bundle选择的时候选择load,不然会安装失败,这样的话,解决方法如下:
    官方文档中说安装地址在~/Library/Developer/Application Support/Developer/Shared/Xcode/Plug-ins,但我是在~/Library/Developer/Xcode/Plug-ins找到的,rm -rf 那个KSImageNamed.xcplugin文档,然后命令行敲入`defaults write com.apple.dt.Xcode KSShowExtensionInImageCompletion -bool NO`注意是NO,让后重新安装就可以重新来过,别忘记load bundle!

    如果曾经安装过,那么就先删除那个插件(过程如上),再`defaults write com.apple.dt.Xcode KSShowExtensionInImageCompletion -bool NO`,ok,重新来过

    就是这样

  • 相关阅读:
    算法导论:堆排序
    地域划分
    字符串翻转
    lintcode:买卖股票的最佳时机 IV
    lintcode:买卖股票的最佳时机 III
    lintcode:买卖股票的最佳时机 II
    lintcode:买卖股票的最佳时机 I
    2016腾讯编程题:微信红包
    2016腾讯编程题:生成格雷码
    2016京东编程题:小东分苹果
  • 原文地址:https://www.cnblogs.com/LDSmallCat/p/5152886.html
Copyright © 2020-2023  润新知