how to install opencv4 in new xcode 11

asked 2019-11-10 07:48:09 -0500

i installed opencv in xcode and it is building successfully but i'm getting this error

dyld: Library not loaded: /usr/local/opt/opencv/lib/libopencv_gapi.4.1.dylib Referenced from: /Users/vivekvenkatasivaramd/Library/Developer/Xcode/DerivedData/Opencv4F-dvjxczikegzegqgxoicuxvhzgchg/Build/Products/Debug/Opencv4F Reason: no suitable image found. Did find: /usr/local/opt/opencv/lib/libopencv_gapi.4.1.dylib: code signature in (/usr/local/opt/opencv/lib/libopencv_gapi.4.1.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/lib/libopencv_gapi.4.1.dylib: code signature in (/usr/local/lib/libopencv_gapi.4.1.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/Cellar/opencv/4.1.2/lib/libopencv_gapi.4.1.2.dylib: code signature in (/usr/local/Cellar/opencv/4.1.2/lib/libopencv_gapi.4.1.2.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. (lldb)

edit retag flag offensive close merge delete