IOS development-use Alcatraz to manage Xcode plug-ins
Xcode is a very good IDE. If you add some plug-ins, it will be even more powerful. Today, we use the Alcatraz tool to manage Xcode plug-ins to improve our programming efficiency. Similar to using cocoapods to manage a large number of third-party libraries in iOS. Today, the first plug-in I will introduce to you is ColorSense. ColorSense allows you to easily set colors.
To install Alcatraz, follow these steps:
(1) first, it is recommended that you roll over the wall or use VPN, which may speed up. In the beginning, Shadowsocks is used, and SSL problems always occur. VPN can be installed in a few seconds.
First, create a folder:
mkdir -p ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins;
Tip: how to enter a folder with spaces on the Mac terminal, you can add a "" Before the space, as shown above, is an Application Support folder, so it is written in Application Support, in the future, enter the folder cd a B with spaces.
(2) Exit Xcode before installation. Run the command on the terminal: if the network speed is good, it will take a few seconds.
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
(3) Open Xcode and load the bundle. Be sure not to select the skip bundle. Then the Package Manager will appear in Xcode.
.
(4) open Package Manager ,:
.
(5) I want to INSTALL the ColorSense plug-in. Enter the plug-in the search box above and click INSTALL to download the plug-in:
.
(6) Because Xcode7 is upgraded, the plug-in cannot be used after it is directly installed. To set the following, first check the UUID of Xcode:
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
.
(7) enter the directory where the plug-in is located, that is, the folder we created at the beginning:
cd ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
You can see all the plug-ins we have installed.
(8) Right-click OMColorSense, right-click the package, display the package content, enter Contents, and open Info. plist: add the generated uuid to the DVTPlugInCompatibilityUUIDs field (even if the UUID already exists, add another row ),
.
Restart Xcode and Load bundle again.
(9) In this way, we can use this plug-in. If some plug-ins cannot be used in the future, you can use this method to fix them. The effect is as follows: in this way, we can set the desired color as needed, and the color can be dynamically set and changed.
Rational use of the plug-in Xcode can improve our development efficiency. I will introduce other interesting plug-ins in the future.