1 | initial version |
Firstly If you are using C++ APIs make sure your files are .mm and not .m and .hpp not .h when writing C++.
Also, the tricky part which I don't know why this works. I read that you need include opencv header BEFORE everything else so, look for your prefix.pch file and add #import "opencv/cv.h" before any #import
Now you can work with OpenCV as usual and #import "opencv2/opencv.hpp" in your .mm files if necessary.
Let me know if that helps!