#. Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object filees and output binaries
#. Enter the <cmake_binary_dir> and type
..code-block:: bash
cmake [<some optional parameters>] <path to the OpenCV source directory>
For example
#. Make symbolic link for Xcode to let OpenCV build scripts find the compiler, header files etc.
If everything's fine, after a few minutes you will get ~/<my_working_directory>/ios/opencv2.framework. You can add this framework to your Xcode projects.