Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Created August 19, 2011 21:52
Show Gist options
  • Save bored-engineer/1158106 to your computer and use it in GitHub Desktop.
Save bored-engineer/1158106 to your computer and use it in GitHub Desktop.
Generate Bridge Support files for iOS
#/bin/bash
printf "Enter IP of device:"
read IP
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
FILES=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/*
for f in $FILES
do
basename "$f"
gen_bridge_metadata --framework "$f" --output "`basename "$f" .framework`.bridgesupport" > /dev/null 2>&1
path="/System/Library/Frameworks/`basename "$f"`/Resources/BridgeSupport/"
ssh root@$IP "mkdir -p '$path'"
scp "`basename "$f" .framework`.bridgesupport" root@$IP:"$path"
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment