在XCode 8及以后版本中,无法加载使用第三方插件,给个人开发造成了很大的困扰。通过查找,发现了一个可以一键更新所有插件的工具。
GitHub地址:https://github.com/inket/update_xcode_plugins
安装方法
1
|
gem
install
update_xcode_plugins
|
如果有报错: 则继续输入以下命令并执行,否则跳过此步。
1
|
sudo gem install -n /usr/local/bin update_xcode_plugins
|
使用方式
首先运行:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$
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
!
��
It
seems
that
you
have
Xcode
8
+
installed
!
Some
plugins
might
not
work
on
recent
versions
of
Xcode
because
of
library
validation
.
See
https
:
//github.com/alcatraz/Alcatraz/issues/475
Run
`
update_xcode_plugins
--
unsign
`
to
fix
this
|
会出现如上提示,然后:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$
update_xcode_plugins
--
unsign
Looking
for
Xcode
.
.
.
Unsigning
Xcode
will
make
it
skip
library
validation
allowing
it
to
load
plugins
.
However
,
an
unsigned
Xcode
presents
security
risks
,
and
will
be
untrusted
by
both
Apple
and
your
system
.
This
tool
will
create
a
backup
and
allow
you
to
restore
Xcode'
s
signature
by
running
$
update_xcode_plugins
--
restore
Choose
which
Xcode
you
would
like
to
unsign
(
use
arrows
)
:
Xcode
(
8.3.3
)
[
Signed
]
:
/
Applications
/
Xcode
.
app
Unsign
xcodebuild
too
?
:
Yes
Unsigning
.
.
.
*
Changing
ownership
of
/
Applications
/
Xcode
.
app
/
Contents
/
MacOS
(
will
be
restored
after
)
Password
:
*
Restored
ownership
of
/
Applications
/
Xcode
.
app
/
Contents
/
MacOS
*
Changing
ownership
of
/
Applications
/
Xcode
.
app
/
Contents
/
Developer
/
usr
/
bin
(
will
be
restored
after
)
*
Restored
ownership
of
/
Applications
/
Xcode
.
app
/
Contents
/
Developer
/
usr
/
bin
Finished
!
|
现在重启XCode 8,插件已经成功加载并能正常使用。
转载:https://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