Skip to content

Instantly share code, notes, and snippets.

@tvon
Last active Dec 15, 2015
Embed
What would you like to do?
Concatenate header files from frameworks in the iOS 6.1 SDK, as described in Mark Dalrymple's talk on headers.
#!/bin/bash
OUTDIR=~/Desktop/moby
BASE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks"
mkdir -p ${OUTDIR}
cd ${BASE}
for dir in *
do
for file in `find $dir -name '*.h'`
do
echo "// ========== ${file}" >> ${OUTDIR}/${dir}.h
cat $file >> ${OUTDIR}/${dir}.h
done
done
cat ${OUTDIR}/*.h > ${OUTDIR}/moby.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment