Last active
August 29, 2015 14:19
-
-
Save Ziewvater/3190e20b1ace2ab3c3b6 to your computer and use it in GitHub Desktop.
Bash script for getting rid of bad Interface Builder state that can occur in Xcode 6.3.
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
#!/usr/bin/env bash | |
WORKSPACE=`find . -name "*.xcworkspace" | grep -v "project.xcworkspace"` | |
if [[ -n $WORKSPACE ]]; then | |
$(rm $WORKSPACE/xcuserdata/$USER.xcuserdatad/UserInterfaceState.xcuserstate) | |
else | |
PROJECT=`find . -name "*.xcodeproj"` | |
$(rm $PROJECT/xcuserdata/$USER.xcuserdatad/UserInterfaceState.xcuserstate) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment