Xcode에서 OpenCV를 실행할 때 code signature not valid 오류가 발생하면

1991 단어 C++macosXcode
Xcode의 Disable Library Validation을 선택하면 해결됩니다.



오류


dyld: Library not loaded: /usr/local/opt/opencv/lib/libopencv_features2d.4.4.dylib
  Referenced from: /Users/oosuyuuki/Library/Developer/Xcode/DerivedData/RectangleDetection-akoxhwvgxqqsyydewscmnhcsbdzy/Build/Products/Debug/RectangleDetection
  Reason: no suitable image found.  Did find:
    /usr/local/opt/opencv/lib/libopencv_features2d.4.4.dylib: code signature in (/usr/local/opt/opencv/lib/libopencv_features2d.4.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.
    /usr/local/lib/libopencv_features2d.4.4.dylib: code signature in (/usr/local/lib/libopencv_features2d.4.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.
    /usr/local/Cellar/opencv/4.4.0_1/lib/libopencv_features2d.4.4.0.dylib: code signature in (/usr/local/Cellar/opencv/4.4.0_1/lib/libopencv_features2d.4.4.0.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) 

원인



Gatekeeper와 Software notarized로 제한된 것 같습니다. 아래의 기사가 참고가 됩니다.
htps : // 이 m / 아리 / ms / 에 1df2 아 8c3d4c2 75069

참고



Xcode에서 OpenCV를 사용하는 절차는 아래 기사를 참조하십시오.
htps : // 코 m / 카루 마다 / ms / 49d369 아 b49

좋은 웹페이지 즐겨찾기