Skip to content

Commit

Permalink
add script to update Xcode compatibility
Browse files Browse the repository at this point in the history
$ ./update_compat.sh
  • Loading branch information
zlargon committed Jul 1, 2015
1 parent 3618a55 commit bbbe6bb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Expand Up @@ -27,6 +27,10 @@ XcodeColors is a simple plugin for Xcode 3, 4, 5 & 6

Did you **upgrade Xcode** and now XcodeColors is **"broken"**? Get the fix here: **[XcodeUpdates](https://github.com/robbiehanson/XcodeColors/wiki/XcodeUpdates)**.

```
$ ./update_compat.sh
```

### XcodeColors installation instructions for Xcode 3:

Wow, you're still running Xcode 3?
Expand Down
21 changes: 21 additions & 0 deletions update_compat.sh
@@ -0,0 +1,21 @@
#!/bin/bash

# show Xcode version and UUID
xcodebuild -version
uuid=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
echo "UUID $uuid"
echo ""

# check UUID
plist=$(pwd)/XcodeColors/Info
if [ -n "$(defaults read '$plist' | grep $uuid)" ] ; then
echo "UUID is already added to Info.plist"
exit
fi

# add UUID to .plist
echo "Add UUID to '$plist'"
defaults write '$plist' DVTPlugInCompatibilityUUIDs -array-add $uuid

# show the result
defaults read '$plist'

0 comments on commit bbbe6bb

Please sign in to comment.