0

I am building an application on OSX with Xcode.

I am using an external library that I build myself (wxWidgets). I didn't run make install for it, and so it is still located in my home directory where I build it.

Now in order to run the AppBundle independently I'm copying the dylib's inside the Bundle and running install_name_tool in order for the linker to pick up the proper directory. This is the code I'm running at the end of the build:

cp -f ~/wxWidgets/buildC11/lib/libwx_baseu-3.2.dylib "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/Frameworks/libwx_baseu-3.2.dylib"

install_name_tool -change /usr/local/lib/libwx_baseu-3.2.dylib @executable_path/../Frameworks/libwx_baseu-3.2.dylib "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/MacOS/$PRODUCT_NAME"

My question would be:

Is my install_name_tool command good? It is executing successfully, but gives problems during the run-time.

Igor
  • 5,620
  • 11
  • 51
  • 103

0 Answers0