Go to "Product" menu, "Scheme" and "Edit Scheme".
Select "Run" from the list on the left.
Change "Build Configuration" to "Release".
Select you project in the Xcode. On the right side select "Build Settings". Select desired target and under "Build Locations" you will find paths for debug, release and distribution configurations. These paths are relative to your "Deriver Data" directory. To open that directory in Finder, do the following. Xcode menu: Window->Organizer. When you get "Organizer" window, on the left side select you project and on the right side you will get "Derive Data" path. Clicking on the arrow at the end of the "Derived Data" path you will open that directory in the Finder.
https://stackoverflow.com/questions/28921091/how-to-get-the-xcode-build-directory/53727382
- Import dynamic link libraries
First, add the path to the header files to "Header Search Paths"(Not necessarily the deepest folder where they are saved, it suffices to tick "recursive").
Then, drag&drop dylib files under "Link Binary With Libraries".
(When do we need to write "opencv2/..."??)
http://nn-hokuson.hatenablog.com/entry/2017/05/12/201453
http://warapuri.com/post/70283352060/unityでopencvを動かしてみよう主にmac対応
https://forum.unity.com/threads/building-opencv-plugin-for-mac-osx.623662/