Last active
August 29, 2015 14:07
-
-
Save drkameleon/7ade7cb18a245dab1fe7 to your computer and use it in GitHub Desktop.
Compile and Debug Cocoa/Objective-C from Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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