Erro OpenCV - O cabeçalho Core.hpp deve ser compilado como C ++

eu tenteiCore.hpp, Base.hpp header must be compiled as C++ erro. Eu tenho o BITCODE definido comoNO.

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>

@interface OpenCV : NSObject
    /// Converts a full color image to grayscale image with using OpenCV.
+ (nonnull UIImage *)cvtColorBGR2GRAY:(nonnull UIImage *)image;
+ (cv::Mat)cvMatFromAdjustedUIImage:(UIImage *)image;
+ (cv::Mat)cvMatFromUIImage:(UIImage *)image;
+ (cv::Mat)cvMatGrayFromUIImage:(UIImage *)image;
+ (cv::Mat)cvMatGrayFromAdjustedUIImage:(UIImage *)image;
@end

No meuOpenCVSample.mm Eu incluí#import "OpenCV.h no cabeçalho.

Git:https://github.com/n1tesh/OpenCV-Demo

questionAnswers(1)

yourAnswerToTheQuestion