Skip to content

Instantly share code, notes, and snippets.

@Ziewvater Ziewvater/badIB
Last active Aug 29, 2015

Embed
What would you like to do?
Bash script for getting rid of bad Interface Builder state that can occur in Xcode 6.3.
#!/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
You can’t perform that action at this time.