I am trying to get dylib working in my OSX project.
I read a few samples, this is specific:
Xcode 4 adds dylib
But I still can't get it to work.
Here are the steps I followed:
Now I copy test.app to a separate computer that has just been installed and try to start it. As a result, I get the following error:
dyld: library not loaded: /user/local/lib/testing1.dylib Link: /Users/me/testing.app/MacOS /./ testing Reason: image not found
Something is missing me, but I'm not sure what? Can someone point me in the right direction?
Notes. When running install_name_tool I need to use sudo or I get the following errors:
install_name_tool: : testing.1.dylib (Permission denied)
install_name_tool: lseek : 0 : testing.1.dylib (Bad file descriptor)
install_name_tool: : testing.1.dylib( Bad )
install_name_tool: : testing.1.dylib( )