Created
August 19, 2011 21:52
-
-
Save bored-engineer/1158106 to your computer and use it in GitHub Desktop.
Generate Bridge Support files for iOS
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
#/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