i following thread, per answer: https://stackoverflow.com/a/30909377/6293090
the stl header can't found compiler when imported or included objective c files line:
\#include <opencv2/opencv.hpp> or:
\#import <opencv2/opencv.hpp> in opencv.m wrapper compiler can't find headers included opencv.hpp or , ('list' file not found), however, if add c++ file project , use same #include line in it, compiles fine. haven't found separate header search path objective c in project's build setting.
what missing? thanks.
you need create objective-c++ file, 1 .mm extension instead of .m, , can mix objective-c , c++ code in implementation file include c++ headers it.
create objective-c (.m) file in xcode , rename have .mm extension, , you're set!
here related question might helpful: video processing opencv in ios swift project.