Skip to content

Instantly share code, notes, and snippets.

View abbeyjackson's full-sized avatar
😬
Let's cross our fingers and hope Xcode builds!

Abbey Jackson abbeyjackson

😬
Let's cross our fingers and hope Xcode builds!
View GitHub Profile
@IanKeen
IanKeen / gist:dfbe42fea3f5746e87aebac86d508f7e
Last active January 14, 2021 00:18
Getting playgrounds working in a project in xcode
1. Create a new xcode project
- You can skip this if you're adding the playground to an existing project
2. File > Save as workspace - save workspace in project folder
- You can skip this if you're adding the playground to an existing workspace
3. File > Playground - create new playground in project folder
4. Drag playground in at the _workspace_ level (root item, i.e. _not_ under the project)
5. Add a new Framework to your project (I usually name mine something like 'PlaygroundKit')
- You don't need to include tests
- Choose 'None' for Enbed in Application
6. Make all project files you want to be accessible to the playground are members of the new target
@ahendrix
ahendrix / gist:7030300
Created October 17, 2013 18:56
bash stacktrace
function errexit() {
local err=$?
set +o xtrace
local code="${1:-1}"
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err"
# Print out the stack trace described by $function_stack
if [ ${#FUNCNAME[@]} -gt 2 ]
then
echo "Call tree:"
for ((i=1;i<${#FUNCNAME[@]}-1;i++))