Xcode 7安装KSImageNamed失败解决方法

时间:2021-02-17 13:37:37

## 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,不然会安装失败

解决:

1.~/Library/Developer/Xcode/Plug-ins 删除KSImageNamed.

2.命令行敲入`defaults write com.apple.dt.Xcode KSShowExtensionInImageCompletion -bool YES