Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- # Want some text 2 speech? uncomment the following line :D
- # say -v "Ava" "Building Cordova"
- cordova build ios 1>/dev/null 2>&1
- cd platforms/ios
- # hint:
- # delete "1>/dev/null 2>&1" when you want all the output from XCode
- xcodebuild -project YOUR_APP.xcodeproj -scheme YOUR_APP -destination name="YOUR_DEVICE_NAME" clean 1>/dev/null 2>&1
- open *.xcodeproj
- # automate XCode
- osascript <<EOD
- delay 1
- tell application "Xcode"
- activate
- end tell
- delay 1
- tell application "System Events"
- key down {command}
- keystroke "."
- key up {command}
- key down {command}
- keystroke "r"
- key up {command}
- end tell
- EOD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement