With Qt/C++ (QT 5.5) on OSX, is there a way to exclude frameworks for APIs I'm not using when running through macdeployqt
?
For instance, I don't think I need the following frameworks:
Here's what I'd recommend: try removing those frameworks from the app bundle manually one by one, then running your application. This is just a matter of opening the app bundle in Finder (or cd-ing into it from the command line) and moving the frameworks to another folder.
You'll likely be surprised by how many of these frameworks turn out to be necessary -- they all have inter-dependencies. The only way around this is to build Qt from source, and configure it such that you only build the modules you need.
As for macdeployqt itself it's a very general tool that won't fit every application's needs. If you're able to remove any of those frameworks, your best bet is to write a script that runs macdeployqt and then fixes up the output. The macdeployqt tool is still rather new (as of Qt 5.5) and as such there's definitely still bugs to be fixed and features to be implemented. So your only option now is to work around its defects.