title: Raw footage not appearing while using OpenCV in XCode
body: <p>Even though the icon appears on the dock, the camera window is not opening.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "opencv2/highgui/highgui.hpp"
  #include "opencv2/imgproc/imgproc.hpp"
  #include "opencv2/core/core.hpp"
  
  using namespace cv;
  using namespace std;
  
  int main(){
      VideoCapture cap(0);
  
      if (!cap.isOpened()) {
          cout &lt;&lt; "Webcam is not open" &lt;&lt; endl;
      }
  
      while (true){
          Mat image;
          Mat HSVimage;
          Mat processedImage;
  
          cap.read(image); //assigns matrices image to raw webcam footage
          imshow("test", image);
  
      }
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/IJ2O9.png" rel="nofollow noreferrer">Screen Shot showing the problem</a></p>