I'm writing a c++ program using xcode and I ran into a problem when configuring the opencv environment that almost no tutorials mention.
The installation at the beginning was as most tutorials say
brew install opencv
Then add opencv path in header search path and library path in build setting.
But after I execute it prompts:
dyld0__abort_with_payload:dyld[5059]: Library not loaded: /opt/homebrew/opt/opencv/lib/libopencv_imgcodecs.408.dylib`
solution is: