[Interest] QMAKE_BUNDLE_DATA: $$files does not work for macOS

Alexander Dyagilev alervdvcw at gmail.com
Mon May 1 15:39:43 CEST 2023


Hello,

Did anybody encounter this issue and has a nice workaround?

I'm trying to use this code (qmake) to copy my shared library to 
Frameworks folder of my app's bundle.

mylib.files = $$files($$OUT_PWD/$$DESTDIR/libmylib*.dylib)
mylib.path = Contents/Frameworks
QMAKE_BUNDLE_DATA += mylib

It does not copy anything. However, this code works (instead of $$files):

#mylib.files += $$OUT_PWD/$$DESTDIR/libmylib.dylib $$OUT_PWD/$$DESTDIR/libmylib.1.dylib

This issue exists under macOS only. $$files works fine when building for 
iOS.

I've created a bug report here: https://bugreports.qt.io/browse/QTBUG-113308
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230501/4b904f56/attachment.htm>


More information about the Interest mailing list