I\'m still quite new to Objective C and Xcode, but I just finished a small app that uses the openCV libopencv_core.2.4.2.dylib
.
When I went to open the
Since other answers are not clear enough;
Assume your dylib files are located in /usr/local/opt/opencv3/lib
sudo ln -s /usr/local/opt/opencv3/lib/*.dylib /usr/local/lib
will solve this problem. Be aware that /usr/lib
is protected by system in MacOS, thus you should use /usr/local/lib
.
I found a better solution: recompiling openCV in Xcode and set the @executable_path/../Frameworks
in the build settings, for every .dylib you compile - now the .dylibs
themselves always "know where they are".
I had the same problem. i keep all .dylib in system root directory usr/lib it working fine. At the run time .o file not get .dylib file path then it gives an error.