Xcode8時(shí)代讓我們一起繼續(xù)使用我們的插件吧

Xcode8時(shí)代讓我們一起繼續(xù)使用我們的插件吧

蘋果出了Xcode8之后,就加了簽名讓之前的自定義插件無(wú)法繼續(xù)的安裝使用。蘋果爸爸這一措施讓我們措手不及。

第一步復(fù)制一份你從AppStore下載最新Xcode8。正版授權(quán)的我們命名為Xcode_Release用于我們發(fā)版本使用。復(fù)制出來(lái)的一份我們改成Xcode.

這是一個(gè)小技巧,因?yàn)槲抑皬?fù)制出來(lái)的命名叫做Xcode8,結(jié)果只要運(yùn)行模擬器就會(huì)提示連接不上網(wǎng)絡(luò),模擬器無(wú)法啟動(dòng)。我就按照網(wǎng)絡(luò)說(shuō)的重啟Xcode,還是出現(xiàn)。

我發(fā)現(xiàn)運(yùn)行正版的是可以的,我就互換了一下Xcode的名字,結(jié)果真的解決了。

重新簽名Xcode8

1.打開(kāi)電腦里面鑰匙串

2.選擇創(chuàng)建一個(gè)證書(在鑰匙串訪問(wèn) - >證書助理)

3.輸入你的名字(你喜歡的名字),然后選擇“代碼簽名”的證書類型。不是必需的,但該名稱在命令行以后使用,因此可以更好地用在這里很容易區(qū)分的名稱(我在這里使用XcodeSigner)

  1. 重新簽名的Xcode

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

我們重新啟動(dòng)Xcode,選擇Load Bundle就可以了,但是很多插件已經(jīng)失效了,我們可以運(yùn)行下面的命令解決。

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甚至?xí)?dǎo)致Xcode崩潰,我們只能讓引起崩潰的插件刪除。

下面是Xcode還能使用不錯(cuò)的插件。

  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.png
      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s1.png
      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s2.png
      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s2.png
      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s3.png
      https://github.com/rickytan/RTTinyPNGWebAPIPlugin/raw/master/ScreenShots/s3.png
    17. StringManage

      ?

    18. StringsValidator

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

      ?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容