Skip to content

Instantly share code, notes, and snippets.

View bubudrc's full-sized avatar

Marcelo Perretta bubudrc

View GitHub Profile
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Write: /bin/bash in 'Shell' input
# 5. Paste code below in to new "Run Script" section
# 6. Drag the "Run Script" below "Link Binaries With Libraries"
# 7. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@bubudrc
bubudrc / .gitattributes_for_ios_projects
Created December 18, 2013 15:13
También crearás un archivo .gitattributes para indicar que el archivo project.pbxproj que genera Xcode se fusione —merge— de forma automática cuando haya conflictos. ¿Por qué? Pues porque si trabajas tú solo en el proyecto no tendrás problemas pero si trabajas en equipo verás que cada vez que hagáis un merge de código entre vosotros, tendréis co…
.*.pbxproj binary merge=union
@bubudrc
bubudrc / .gitignore_for_ios_projects
Created December 18, 2013 15:11
This is the basic .gitignore file to use when we create a project to use for git.
# OS X Finder
.DS_Store
# Xcode per-user config
*.mode1
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
*.pbxuser
@bubudrc
bubudrc / pre_installation_ruby_mac
Last active December 27, 2015 19:09
This the steps to pre-install RUBY correctly into a MAC machine
# Istall Ruby by *rbenv* in a MAC
+ Download and Install Xcode
+ Run: ```xcode-select install``` (xcode-select --install)
+ Run: ```brew install rbenv, brew install ruby-build```
+ Run: ```rbenv install 2.0.0-p247```
### READY TO GO