Little things that can make your life easier in 2016

Source: Internet
Author: User

As the end of this year, we recommend some tools that you can add to your iOS development toolkit and make it easier and more efficient to develop for 2016 years.

The power of using user breakpoints

There are a lot of places where we use breakpoints, but I find that most friends only use regular breakpoints for debugging.

In fact, there are a lot of places you can use, for example, you can promote a normal breakpoint to a user breakpoint and use it in all of your projects, why not?

Because you can create a specific symbolic breakpoint in the execution code, such as Uiapplicationmain:

Did you see what I did?

Now whenever I debug any project, I have not done it:

I deal with this directly:

There are no additional steps.

You can do more:

    • Want to record all the methods that are called in objective-c?

    • Do you want to ignore a specific exception?

    • Need to add some other good breakpoint ideas?

Make Xcode more useful

Plugins: Xcode here are some of my favorite plugins, if you do not try them, you may miss some very powerful plug-in features:

    • alcatraz-This plugin can add Packagemanager to Xcode and you can use it to install other plugins.

    • kzlinkedconsole--can jump directly from the error log to the source code.

    • xcodecolors--don't you want your Xcode console to be colored? This plugin makes the error log more visible.

    • ksimagenamed--Add IntelliSense and preview your imagenamed: Call the picture.

    • omcolorsense--increases the preview of your user interface color and even allows you to modify the code directly using the Color picker.

    • vvdocumenter--If you write a library you should add a document, this plugin can easily provide you with context-aware templates

PS: Translator Attach

(If you find that you cannot use the plugin after installing it, you can try to resolve it by this method:

1. Open the directory where the Xcode plugin is located:

~/{User name}/library/application support/developer/shared/xcode/plug-ins

2. Select the installed plugin such as Vvdocument, right click on the display package content,

3. Locate the Info.plist file, locate the Dvtplugincompatibilityuuids project,

4. Add C4A681B0-4A26-480E-93EC-1218098B9AA0 (the number of Xcode you are currently using), this number gets the way:

Perform defaults read/applications/xcode.app/contents/info dvtplugincompatibilityuuid at the terminal

5. Right click "Open Newspaper" double click on a black icon in the Contents\macos directory, the terminal window will open, and finally print "process completed",

Restart Xcode. )

Hide Options

Open your terminal and handle it like this:

    • Want to see how long it takes to compile your project?

1 defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
    • Better auto-complete blur mode?

12 defaults write com.apple.dt.Xcode IDECodeCompletionFuzzyMode 3defaults write com.apple.dt.Xcode IDEWorkaroundForRadar6288283 3
    • Accelerate build time with multi-core CPUs?

1 defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`

Other:

    • Using Iramdisk allows you to have the fastest memory for your derived data and iOS emulator. Even the new SSD is inferior to it.

    • Using Kzplaygrounds allows you to implement your new features faster with Swift and objective-c.

    • Using the interface Builder? Would you be distressed to move it every time you add a sub-view on top of the view? By holding CMD, you don't need to do that again.

    • Look at some of the other tools I've used that can save you time.

===============================english========================================

As we are closing this year, let's take a look at few-things you can add to your IOS developer Toolbox to make your Life easier and is more productive in 2016.

Using the power of the User breakpoints

We Use the breakpoints quite a lot, but I see that the most of my friends is use regular breakpoints whilst debugging.

There is much more you can does with them, e.g. you can elevate your custom breakpoint to User breakpoint and has them work In all your projects, why would?

Because You can create symbolic breakpoint ' s, the execute code whenever a specific point is reached, e.g. Uiapplicationmai N:

Did you see how did I do there?

Now whenever I debug any project I ' m working on, instead of:

I can get straight to business with:

Without extra steps.

And you can do so much more:

    • Want to log all methods getting called in objective-c?

    • Want to ignore specific exceptions?

    • Need some other good breakpoints ideas to add?

Making Xcode Betterplugins

Here is some of my favourite plugins for Xcode, if you don't give them a try you might is missing out on some really grea T features:

    • Alcatraz-this is a plugin so adds a packagemanager into Xcode, the which you'll use to install all other plugins.

    • Kzlinkedconsole-adds ability to straight to the source code this logged an error

    • Xcodecolors-while would you don't want to the colors in your Xcode console? Makes error stand out so much more

    • Ksimagenamed-adds Intelisense with preview to your Imagenamed:calls

    • Omcolorsense-adds Preview to your uicolors and it even allows "use" Color picker straight from "to" modify the C Ode.

    • Vvdocumenter-if You write libraries you should is adding documentation to them, this plugin makes it easy by giving Context-aware templates

Hidden Options

Open your terminal and type those:

    • Want how long is it takes to build your project?
write com.apple.dt.Xcode ShowBuildOperationDuration YES
    • Better autocompletion with Fuzzy mode?
write com.apple.dt.Xcode IDECodeCompletionFuzzyMode 3defaults write com.apple.dt.Xcode IDEWorkaroundForRadar6288283 3
    • Faster build times by leveraging multi-core CPU?
write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`
Other
    • Use Iramdisk to put your Derived Data and IOS Simulator on fastest memory. Even on new SSD it makes a difference.
    • Use Kzplaygrounds to implement your new features faster in both Swift and objective-c
    • Using Interface Builder? Probably got annoyed by view being added as a subview everytime do you move it? Just hold cmd and it won ' t does that ever again.
    • See if some other tools I ' ve used can save you time

Little things that can make your life easier in 2016

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.