Crayon Themes for lang:sh

Xcode Run Script to Auto-increment Build Number

Auto-incrementing build number.

  • 0. Target -> Build Phases -> Target Dependencies. Click on “Add target dependencies here” area (Xcode bug to get step 1 not greyed out)
  • 1. Editor -> Add Build Phase -> Add Run Script Build Phase
  • 2. Paste this code
  • 3. Change CFBundleDisplayName prefix. eg. Ped
  • 4. Add Row Bundle display name (aka CFBundleDisplayName) to Info.plist

Code snippets

Adding code snippets to WordPress

  • Search plugins for syntax.
  • Install Crayon.
  • Read documentation.
  • Use <pre> tags in “Text” mode as shown below.

<pre class="lang:swift" title="A snippet of code">
import UIKit
class SampleClass: NSObject {
var variable:Double

  • End up with something like this:

It’s that easy!