# OpenCV on IOS haar cascade xml file path issues from C++

So I have my code in C++ and I am able to run it fine on linux/OSX/Android. The problem now is ios. I am simply trying to load the haar cascade xml files via full path "/foo/blah/myapp.app/haar.xml" and having one heck of a time.

C++ can't confirm the file exists nor can opencv load it. I am new to ios and am aware that the myapp.app could be a compressed dir like the android .apk dir.

I have confirmed that I'm looking in the right place....or at least I hope I have! to check i use getcwd in c++ to get running directory and I confirm that with the file path to the xml file. It looks legit!

What can I do? The nice part about using C++ for the lib is that I can use one code base for desktop/android/ios. I really don't want to have to mix in Objective-C into my lib just for file paths.

    std::ifstream fexists(face_haar_path.c_str());