I was trying to install PhoneGap on my work MacBook yesterday and the installation would fail at the end, just saying the installation failed and I might “want to try again.”
Cmd-L showed me the entire log file. It turns out that cocos2d had installed a template for Xcode and marked the templates directory as owned by ‘root’.
So I changed the owner of the directory:
sudo chown fraffic “/Users/fraffic/Library/Application Support/Developer/Shared/Xcode/Project Templates”
Although I suspect that changing the permissions on the directory would’ve also fixed the issue.
After chown’ing, the install worked.