Open-source framework: Alcatraz

Source: Internet
Author: User

Introduction:

AlcatrazIs a tool that can help you centrally manage xcode plug-ins"Plug-ins", Its usage is similarCocoapods. PassAlcatrazIt is very important to use the plug-in.GitHubSearch for resources in this area becauseAlcatrazMost open-source plug-ins are included.

References:

1: getting started with plug-in Creation

Http://onevcat.com/2013/02/xcode-plugin/

2: xcode plugin management tool: Alcatraz

Http://t.cn/zQEVFpS

Installation:

AlcatrazThe GitHub hosting address of is as follows:

Https://github.com/mneorr/alcatraz

The installation method is very simple. You only need to start the terminal and paste the following command to run it:

mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins;curl -L http://goo.gl/xfmmt | tar xv -C ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -

However, the version installed above may not be the latest, but it will not be far away. If you need to install the latest version, you can goAlcatrazDownload the source code from GitHub.

But before compilation, run the pod install command on the terminal to get it.AlcatrazRequired dependency framework. Otherwise, compilation fails.

After the installation is successful, we canXcodeTop menuWindowOpen it. Before that, you need to restart yourXcode:

Usage:

AlcatrazIt mainly includes the following three types of plug-ins,

They are:

1. Integrated plug-ins

2. Code Color Scheme

3. Code Template

UseAlcatrazThe provided plug-ins only need to check the corresponding plug-ins to complete the installation. If you are uninstalling the plug-in, unselect it. If you want to update a plug-in, you only need to deselect the selected plug-in and then check it again to complete the update.

I personally think the most practical thing isIntegration pluginBy installing some useful plug-ins, we can fully accelerate our development efficiency.

Next we will introduce several plug-ins that are currently in use:

1: ksimagenamed

When writing code, the intelligent sense of the Code provided by the compiler plays an important role. however, xcoode does not provide intelligent awareness of the name of the resource. this affects more or less some efficiency and even makes people upset.

But fortunatelyKsimagenamedIt can intelligently perceive the image data in the current project.Imagenamed, Automatically displayed, such:

2: omcolorsense

In the code, we often need to set specific color values for the UI control. However, the color API provided by uikit is cumbersome and not intuitive enough.

WhileOmcolorsenseTo solve this problem that is not intuitive and tedious to set.

After installing the plug-in, we can directly open it at the code level.Color selectorAnd you can preview whether the color we set is correct. This is really great!

3: vv1_enter-xcode

Vv1_enter-xcodeIs a plug-in that mainly assists in writing comments. The format of the comments generated by the three backslash // will be consistent with that of Apple's official website.XcodeBuilt-in annotation viewing function.

4: autoresizemask-for-xcode

Autoresizemask-for-xcodeLetAutoresizingmaskThe Code layer has the same visual effect as XIB, which makes it easy to use and use quasi autoresizingmask.

5:

Uninstall:

UninstallAlcatrazOnly two operations are required.

1: Delete ~ /Library/Application \ support/developer/shared/xcode/plug-ins/Alcatraz. xcplugin

2: Use Terminal commands to deleteAlcatrazGenerated folders and their files

rm -rf ~/Library/Application\ Support/Alcatraz/

Risks:

After the plug-ins are successfully installed, the integrated plug-in resources will be loaded every time xcode is started. these plug-ins are attached to the xcode process, that is, they are on the same lifeline. if any line of code in the plug-in is incorrect, the generated crash will cause the entire xcode process to crash together.

Ideally, the plug-in author will test and fix the problem in xcode of the latest version. however, if we need to urgently use the latest version of xcode, And the plug-in author has not provided updates, We Have To uninstall the corresponding plug-ins first, to avoid crash caused by new version compatibility issues.

The directory stored by the installed plug-in is:

~ /Library/Application Support/developer/shared/xcode

You can also manually clear all plug-ins.

 

Summary:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.