First time here? Check out the FAQ!
Why doesn't the iOS framework (2.4.2) include the cv.h header file ?
cv.h
As a result opencv2/legacy/compat.hpp needs to be manually included as it isn't included in opencv.hpp
opencv2/legacy/compat.hpp
opencv.hpp