Error in Install cocos2d-x template on MacOS

I got the error “sudo: unable to execute ./install-templates-xcode.sh: Operation not permitted” when I install on my Mac. Suspect is my xcode directory is different from the script itself. I got my xcode from Mac App Store (Version 4.3.2 (4E2002)), can anyone help? Thanks.

try this > ./install-templates-xcode.shu -f