KSImageNamed-Xcode插件在xcode 6.4/6.3或其他版本中不能使用解决方案
大家都知道这个插件很强大,但是现在这个插件最新版貌似只支持xcode7 ,需要修改KSImageNamed-xcode中的一个配置文件,添加uuid才能使他支持xcode6.3或6.4
进入下载的插件项目包,按下面路径找到KSImageNamed-Info.plist文件
/KSImageNamed-Xcode-master/KSImageNamed/KSImageNamed-Info.plist
如下图,
- 对于xcode6.4 将DVTPlugInCompatibilityUUIDs的keys值添加下面的键值就行了
<key>DVTPlugInCompatibilityUUIDs</key>
<array> <string>FEC992CC-CA4A-4CFD-8881-77300FCB848A</string> <string>63FC1C47-140D-42B0-BB4D-A10B2D225574</string> <string>37B30044-3B14-46BA-ABAA-F01000C27B63</string> <string>640F884E-CE55-4B40-87C0-8869546CAB7A</string> <string>A2E4D43F-41F4-4FB9-BB94-7177011C9AED</string> <string>AD68E85B-441B-4301-B564-A45E4919A6AD</string> <string>C4A681B0-4A26-480E-93EC-1218098B9AA0</string> <string>A16FF353-8441-459E-A50C-B071F53F51B7</string> <string>9F75337B-21B4-4ADC-B558-F9CADF7073A7</string> <string>E969541F-E6F9-4D25-8158-72DC3545A6C6</string> <string>7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90</string>
</array>
- 对于xcode6.3 将DVTPlugInCompatibilityUUIDs的keys值添加下面的键值就行了
<key>DVTPlugInCompatibilityUUIDs</key>
<array> <string>FEC992CC-CA4A-4CFD-8881-77300FCB848A</string> <string>63FC1C47-140D-42B0-BB4D-A10B2D225574</string> <string>37B30044-3B14-46BA-ABAA-F01000C27B63</string> <string>640F884E-CE55-4B40-87C0-8869546CAB7A</string> <string>A2E4D43F-41F4-4FB9-BB94-7177011C9AED</string> <string>AD68E85B-441B-4301-B564-A45E4919A6AD</string> <string>C4A681B0-4A26-480E-93EC-1218098B9AA0</string> <string>A16FF353-8441-459E-A50C-B071F53F51B7</string> <string>9F75337B-21B4-4ADC-B558-F9CADF7073A7</string>
</array>
若是更低的版本,https://github.com/ksuther/KSImageNamed-Xcode/commits?author=ksuther该页面查找即可。
没有去尝试,那么连后悔的资格都没有