Skip to content

Instantly share code, notes, and snippets.

View jacobvanorder's full-sized avatar

Jacob Van Order jacobvanorder

View GitHub Profile
@jacobvanorder
jacobvanorder / ThanksTimCook
Last active November 21, 2016 10:45
Bash Shell Script for Xcode Aggregate Target for new Xcode 6 Framework/Module
#Thanks to http://spin.atomicobject.com/2011/12/13/building-a-universal-framework-for-ios/ for the start
#To get this to work with a Xcode 6 Cocoa Touch Framework, create Framework
#Then create a new Aggregate Target. Throw this script into a Build Script Phrase on the Aggregate
#Tip: if you want the resulting framework to be the same name as your Framework, change the Aggregate's product name
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${PRODUCT_NAME}.framework"
DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${PRODUCT_NAME}.framework"
UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal"
FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${PRODUCT_NAME}.framework"
alias cb='git branch | grep "*" | sed "s/* //" | awk '"'"'{printf $0}'"'"' | pbcopy'