I broke down and signed up to the Xcode mailing list in order to ask how you can set the default prefix for bundle identifiers, as the lazyweb proved spectactularly useless in helping me with that problem. Turns out it’s not exactly dark magic; I got a response with detailed instructions within minutes—once I managed to get the question across correctly.

Here’s what I ended up doing. This is more for my own reference than anything else (so I can just copy and paste the next time) but other people might find it useful too:


mkdir ~/Library/Application\ Support/Apple/Developer\ Tools/Target\ Templates
cp -r /Library/Application\ Support/Apple/Developer\ Tools/Target\ Templates/Cocoa ~/Library/Application\ Support/Apple/Developer\ Tools/Target\ Templates
cd ~/Library/Application\ Support/Apple/Developer\ Tools/Target\ Templates/Cocoa/
perl -pi -e ’s/com.yourcompany/org.brautaset/g’ *

Leave a Reply