E: me@sabisin.com | T: +49.151.68651209

Increase the build number while Archiving in Xcode

Here are steps how to set it up :

1. Click on the project name in left side panel
2. Go to TARGETS and select your base project
3. Click on build phases tab on the top right side

Part of Xcode will look like this

Copy this entire script in the provided blank space.

buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")  
buildNumber=$(($buildNumber + 1))      
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"

Listing globally installed NPM packages and version

npm list -g --depth=0

DDB Disrupt

PHP Debug to console

Simple helper to debug to the console

@param  Array, String $data
@return String

function debug_to_console( $data ) {
   if ( is_array( $data ) )
      $output = "";
      $output = "";
    echo $output;

debug_to_console( "Test" );

Downgrade Node.js to a Specific Version Using Homebrew

So here it goes, Install Homebrew versions:

$ brew tap homebrew/versions

Look for the package you need:

$ brew search node

That is going to return a list of packages with keywords matching “node”

$ leafnode node node010 node04 node06 node08 nodebrew nodenv

Install the package with the version you need:

$ brew install node010
$ brew link --overwrite node010