Preferred method of installation Macports.
Install opencv using sudo port install opencv
.
Once installed, copy the .xctemplate
to
~/Library/Developer/Xcode/Templates/Application/Project Templates/OpenCV/
(Create any non-existent sub directory)