2 Replies
      Latest reply on Feb 8, 2020 2:25 PM by ingconti
      satibasti Level 1 Level 1 (0 points)

        After upgrading to OS X 10.11 El Capitan I'm having trouble with my libraries due to SIP and rootless:

         

        dyld: Library not loaded: libmysqlclient.18.dylib

          Referenced from: /Users/jose/Library/Developer/Xcode/DerivedData/myProject-dvophlqioihoungqcdkihvpzskee/Build/Products/Debug/SaDPeMAC.app/Contents/MacOS/myProject

          Reason: image not found

         

        I have changed the shared library identifier of libmysqlclient.18.dylib so that dyld looks for the binary relative to my application binary with this:

         

        @executable_path/../Frameworks/libmysqlclient.18.dylib libmysqlclient.18.dylib

         

        This works fine in my Mac Book Pro, but when a do the same in my iMac27 it throws the following error:

         

        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: libmysqlclient.18.dylib (No such file or directory)

         

        I don't see any difference between my MBP and my iMac27. Any ideas?

         

        Thanks in advance.