Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

Try to re-install libtool by: brew reinstall libtool –universal && brew unlink libtool && brew link libtool If that doesn’t help, try removing libtool completely, and then retry the steps above: brew uninstall libtool If it still doesn’t work after trying the steps above, check to see if you have the DYLD_FALLBACK_LIBRARY_PATH variable defined somewhere … Read more

How to run an iOS app that causes runtime error for frameworks “code signature invalid”

This is an issue with iOS 13.3.1. All dynamic frameworks being compiled to the newest release of iOS 13.3.1 are experiencing this issue when run on a personal provisioning profile/developer account. The solution, copied from jmagman from Github, is below. You can: Use a non-Personal Team provisioning profile (paid developer account). Run on the 13.3.1 … Read more

Fresh Installs of RVM and Ruby 2.1.1 – dyld library/pathing error

It looks it’s a temporary bug: https://twitter.com/mpapis/status/447926386314186752. The disable-binary option worked for me: rvm reinstall 2.1.1 –disable-binary EDIT – better solution I see that some people still have this problem. Today much better solution is to update RVM like this: rvm get stable The problem was caused by RVM – it had some paths hard-coded … Read more

How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?

Found by experimentation, and inspecting the command lines generated by Xcode for a reference rpath demo project by Dave Driblin: otool -L shows you the install name of the linked libraries. To get @rpath to work, you need to change the install name of the library: $ gcc -dynamiclib blah.o -install_name @rpath/t/libblah.dylib -o libblah.dylib $ … Read more

install_name_tool to update a executable to search for dylib in Mac OS X

From otool -l, I analyzed what should be added or modified from the original library and binary. Dylib The change is in id: Load command 2 <– OLD cmd LC_ID_DYLIB cmdsize 40 name libtest.dylib (offset 24) time stamp 1 Wed Dec 31 18:00:01 1969 Load command 2 <– NEW cmd LC_ID_DYLIB cmdsize 64 name @loader_path/../lib/libtest.dylib … Read more