君赏博客GB 移动小组

Xcode8时代让我们一起继续使用我们的插件吧

2016-11-26  本文已影响234人  君赏

Xcode8时代让我们一起继续使用我们的插件吧

苹果出了Xcode8之后,就加了签名让之前的自定义插件无法继续的安装使用。苹果爸爸这一措施让我们措手不及。

第一步复制一份你从AppStore下载最新Xcode8。正版授权的我们命名为Xcode_Release用于我们发版本使用。复制出来的一份我们改成Xcode.

这是一个小技巧,因为我之前复制出来的命名叫做Xcode8,结果只要运行模拟器就会提示连接不上网络,模拟器无法启动。我就按照网络说的重启Xcode,还是出现。

我发现运行正版的是可以的,我就互换了一下Xcode的名字,结果真的解决了。

重新签名Xcode8

1.打开电脑里面钥匙串

2.选择创建一个证书(在钥匙串访问 - >证书助理)

3.输入你的名字(你喜欢的名字),然后选择“代码签名”的证书类型。不是必需的,但该名称在命令行以后使用,因此可以更好地用在这里很容易区分的名称(我在这里使用XcodeSigner)

  1. 重新签名的Xcode

     $ sudo codesign -f -s XcodeSigner /Applications/Xcode.app    (Replace the Xcode path if it is different.)
    
    

我们重新启动Xcode,选择Load Bundle就可以了,但是很多插件已经失效了,我们可以运行下面的命令解决。

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`

一些插件不兼容Xcode8甚至会导致Xcode崩溃,我们只能让引起崩溃的插件删除。

下面是Xcode还能使用不错的插件。

  1. AMMethod2Implement

    1. AutoCompletion

    2. Auto-Importer-for-Xcode

    3. AutoHighlightSymbol

    4. CocoaControlsPlugin

    5. cocoapods-xcode-plugin

    6. extract-localizable-string-plugin-xcode

    7. FastCoding-Xcode-Plugin

    8. FastStub-Xcode

    9. findit-for-xcode

    10. FKRealGroup

    11. HCTemplet

    12. HOStringSense-for-Xcode

    13. JSPatchX

    14. MLAutoReplace

    15. Xcode-Quick-Localization

    16. RTTinyPNGWebAPIPlugin

      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s1.pnghttps://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s1.png https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s2.pnghttps://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s2.png https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s3.pnghttps://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s3.png
    17. StringManage

    18. StringsValidator

      https://github.com/wallora/StringsValidator/raw/master/screenshots/screenshot1.pnghttps://github.com/wallora/StringsValidator/raw/master/screenshots/screenshot1.png

上一篇下一篇

猜你喜欢

热点阅读