OpenCV 4.x+ requires enabled C++11 support in Xcode 13.2

I am trying integrating OpenCV - 4.5.3 in my cocoapod project and when I build project I am getting following errors in cvdef.h file.

  1. “OpenCV 4.x+ requires enabled C++11 support”
  2. ‘array’ file not found

related: c++ - OpenCV 4.x+ requires enabled C++11 support in Xcode 13.2 - Stack Overflow