Last active
August 29, 2015 14:04
-
-
Save takatomo/dbba20b018e030429ba7 to your computer and use it in GitHub Desktop.
【Bash】Add UUID to Xcode Plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <Xcode UUID>を確認するコマンド ============================================================================================== | |
# このコマンドで出力された文字列がプラグインの互換性チェックをごまかすための文字列になります。 | |
# Xcode.app の部分は対応させたいXcode.appに変更してください。 | |
find /Applications/<Xcode.app> -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID | |
# すべてのプラグインの互換性チェックをごまかすコマンド ============================================================================== | |
# <Xcode UUID> は上のコマンドで出力された文字列です。 | |
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add <Xcode UUID> | |
# プラグインに<Xcode UUID>が追加されているか確認するコマンド ============================================================ | |
# 今回追加した<Xcode UUID>がすべてのプラグインに追加されていればOK | |
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUIDs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment