[Interest] Run script right before qmake finishes (or: embedd iOs framework)

Bernhard B schluchti at gmail.com
Thu Jan 5 20:03:22 CET 2017


I am currently getting the following error when compiling my Qt iOs app:

Library not loaded: @rpath ....
Reason: image not found

I know that I can solve this issue by adding the framework which causes the
problem to the "Embedded Binaries" section in my XCode project.
Unfortunately, I currently have to do this manually every time qmake is run
(as it gets overwritten). See also this related ticket: [1]

In one of the comments, Luke Vear mentioned his script [2] which
automatically adds a given framework to the "Embedded Binaries" section. He
does that with the help of a "custom process step". I really like the idea
of scripting that, but I don't want to do this with a custom process step.
The reason for that is, that I have many build machines, which makes it
difficult to keep all the build configurations in sync.

So I thought about whether it's possible to modify my *:pro file in a way,
that the script gets run automatically after everything else finished? I
know that I can run a script with "system", but how can I make sure that it
runs after qmake created the XCode project? Does anyone know how I can
accomplish that?

Thanks for reading this,

[1] https://bugreports.qt.io/browse/QTBUG-51951
[2] https://github.com/lukevear/qt-xcodeproj-embeded-frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170105/053a4cd6/attachment.html>

More information about the Interest mailing list