Resource files in OS X bundle
How to add resource files to an OS X application bundle
On OS X, applications are delivered as so called “bundles”. That’s just a directory with a predefined structure and the suffix .app. You can learn more about the structure in the OS X specific deployment instructions [doc.qt.nokia.com] of the Qt documentation and in Apple’s own docs about application bundles [developer.apple.com].
If you have additional files that need to be distributed along your application that cannot be put into the qrc resources [doc.qt.nokia.com] (eg. QML files), they have to be installed in the right place. For resource files this is YourFancyApplication.app/Contents/Resources.
You can let qmake do all the copy work for you. Just add a snippet like this to your .pro file:
You can create more snippets like this, for example to group the resources by type.