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

Thiago Macieira thiago.macieira at intel.com
Mon May 1 19:36:00 CEST 2023

On Monday, 1 May 2023 06:39:43 PDT Alexander Dyagilev wrote:
> 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
> 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.

That probably happens because those files don't exist when you ran qmake, so 
the glob matched nothing.

Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230501/2d276d01/attachment.bin>

More information about the Interest mailing list