i am running any code(over xcodes)even "hello world" and i am getting the same error all the time how can i fix this ?????
dyld: Library not loaded: /usr/local/opt/opencv/lib/libopencv_stitching.4.5.dylib
Referenced from: /Users/khaledzbidat/Library/Developer/Xcode/DerivedData/OpencvCourse_-hhaivjyxxrgltdhgizcoxxkwobzu/Build/Products/Debug/OpencvCourse_
Reason: no suitable image found. Did find:
/usr/local/opt/opencv/lib/libopencv_stitching.4.5.dylib: code signature in (/usr/local/opt/opencv/lib/libopencv_stitching.4.5.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_stitching.4.5.dylib: code signature in (/usr/local/lib/libopencv_stitching.4.5.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.5.4_4/lib/libopencv_stitching.4.5.4.dylib: code signature in (/usr/local/Cellar/opencv/4.5.4_4/lib/libopencv_stitching.4.5.4.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)
CodePudding user response:
Then, hopefully, your library will load and the app will run.

