Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there any way to change the dynamic library search path in Xcode
    primarykey
    data
    text
    <p>Below is my scenario, </p> <ol> <li><p>In my Application i had to make use of libopus library , i downloaded and install, compile --> install procedure is normal as its for any other open source library, </p></li> <li><p>I linked libopus.a with my application, the way i did is , by default it will get installed in /usr/local/lib, so i drag from there and add it to my application, </p></li> </ol> <p>Worked fine and no error on my machine, </p> <p>On Another machine, i was expecting it to be run smoothly as i included this library statically, but its throwing error as </p> <pre><code>dyld: Library not loaded: /usr/local/lib/libopus.0.dylib </code></pre> <p>so i concluded, libopus.a somehow including libopus.0.dylib also dynamically, </p> <p>Now i am able ot add a copy phase in my build setting , so it will get copied in ../Framework folder </p> <p>if i do otool -L libpus.a then it shows following result </p> <pre><code>otool -L /usr/local/lib/libopus.a Archive : /usr/local/lib/libopus.a /usr/local/lib/libopus.a(bands.o): /usr/local/lib/libopus.a(celt.o): /usr/local/lib/libopus.a(cwrs.o): /usr/local/lib/libopus.a(entcode.o): /usr/local/lib/libopus.a(entdec.o): /usr/local/lib/libopus.a(entenc.o): /usr/local/lib/libopus.a(repacketizer.o): </code></pre> <p>It doesn't show as its depend upon the dylib library <strong>Now my Question is<br> How to tell Application to look into this path first</strong></p> <p>I tried following option, </p> <ol> <li><p>install_name_tool but it seems it will work on other machine , so the user need to run this script NOT DEVELOPER, </p></li> <li><p>trying to set the some option in the xcode to set the RUNTIME Search path to locate that particular dylib but not getting succeed so far </p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload