在XCode 8及以后版本中,无法加载使用第三方插件,给个人开发造成了很大的困扰。通过查找,发现了一个可以一键更新所有插件的工具。
GitHub地址:https://github.com/inket/update_xcode_plugins
安装方法
geminstallupdate_xcode_plugins
如果有报错: 则继续输入以下命令并执行,否则跳过此步。
sudo gem install -n /usr/local/bin update_xcode_plugins
使用方式
首先运行:
$update_xcode_plugins
Found:
-Xcode(8.3.3)[DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C]:/Applications/Xcode.app
Plugins:
-Alcatraz(1.2.1)
-Auto-Importer(1.0)
-ClangFormat(1.0)
-XBookmark(1.1)
Updating…
Finished!��
ItseemsthatyouhaveXcode8+installed!
SomepluginsmightnotworkonrecentversionsofXcodebecauseoflibraryvalidation.
Seehttps://github.com/alcatraz/Alcatraz/issues/475
Runupdate_xcode_plugins--unsign
tofixthis
会出现如上提示,然后:
$update_xcode_plugins–unsign
LookingforXcode…
UnsigningXcodewillmakeitskiplibraryvalidationallowingittoloadplugins.
However,anunsignedXcodepresentssecurityrisks,andwillbeuntrustedbybothAppleandyoursystem.
ThistoolwillcreateabackupandallowyoutorestoreXcode’ssignaturebyrunning
$update_xcode_plugins–restore
ChoosewhichXcodeyouwouldliketounsign(usearrows):Xcode(8.3.3)[Signed]:/Applications/Xcode.app
Unsignxcodebuildtoo?:Yes
Unsigning…
*Changingownershipof/Applications/Xcode.app/Contents/MacOS(willberestoredafter)
Password:
*Restoredownershipof/Applications/Xcode.app/Contents/MacOS
*Changingownershipof/Applications/Xcode.app/Contents/Developer/usr/bin(willberestoredafter)
*Restoredownershipof/Applications/Xcode.app/Contents/Developer/usr/bin
Finished!
现在重启XCode 8,插件已经成功加载并能正常使用。
:http://blog.kuoruan.com/117.html
:http://blog.csdn.net/muyu114/article/details/72627636
:http://www.jianshu.com/p/27be46d5e5d4
:http://www.cnblogs.com/jys509/p/5439654.html