Little things that can make your life easier in 2016 3 minute read



As we are closing this year, let’s take a look at few simple things you can add to your iOS developer toolbox to make your life easier and be more productive in 2016.

Using the power of User Breakpoints

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

There is much more you can do with them, e.g. you can elevate your custom breakpoint to User Breakpoint and have them work in all your projects, why would you do that?

Because you can create symbolic breakpoint’s that execute code whenever a specific point is reached, e.g. UIApplicationMain:

Did you see what 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:

Making Xcode better

Plugins

Here are some of my favourite plugins for Xcode, if you don’t give them a try you might be missing out on some really great features:

Alcatraz - this is a plugin that adds a PackageManager into Xcode, which you will use to install all other plugins.

KZLinkedConsole - adds ability to jump straight to the source code that logged an error

XCodeColors - while would you not want to have 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 you to use Color Picker straight from that to modify the code.

VVDocumenter - if you write libraries you should be adding documentation to them, this plugin makes it easy by giving you context-aware templates

Hidden options

Open your terminal and type those:

Want to see how long it takes to build your project? defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

Better autocompletion with Fuzzy mode? defaults write com.apple.dt.Xcode IDECodeCompletionFuzzyMode 3 defaults write com.apple.dt.Xcode IDEWorkaroundForRadar6288283 3

Faster build times by leveraging multi-core CPU ? defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`

Other