The macdeployqt command-line tool will add all the necessary Qt libraries referenced by your Qt project.
If you need other, third-party libraries, you need to copy them manually and set the paths for them using the install_name_tool command.
You can check which libraries reference your application using the otool command. For example: -
otool -L MyApplication.app/Contents/MacOS/MyApplication
For Qt Creator, I prefer to write a script that adds the necessary libraries and calls macdeployqt, and then adds a build step in the Projects section that calls the script.
An example script that simply adds Qt libraries will look something like this: -
#!/bin/bash pwd echo Copying QT libraries... macdeployqt ./MyApplication.app
TheDarkKnight
source share