Skip to content

Instantly share code, notes, and snippets.

@drkameleon
Last active August 29, 2015 14:07
Show Gist options
  • Save drkameleon/7ade7cb18a245dab1fe7 to your computer and use it in GitHub Desktop.
Save drkameleon/7ade7cb18a245dab1fe7 to your computer and use it in GitHub Desktop.
Compile and Debug Cocoa/Objective-C from Terminal
# Compile/Run/Debug Script
# For Objective-C/Cocoa Xcode projects
#
# Copyright (c) 2014
# Dr.Kameleon
# Usage:
# ./debug.sh PROJECT <DESTINATION>
project=$1
if [ -z "$2" ]; then
dest="Build"
else
dest=$2
fi
xcodebuild -project $project.xcodeproj -scheme $project -configuration Release CONFIGURATION_BUILD_DIR=$dest
lldb -f $dest/$project.app -o "run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment