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

Richard Gustavsen Richard.Gustavsen at qt.io
Fri Jan 6 10:00:46 CET 2017

You can try to add something like the following to your pro file:



Fra: Interest <interest-bounces+richard.gustavsen=qt.io at qt-project.org> på vegne av Bernhard B <schluchti at gmail.com>
Sendt: 5. januar 2017 20:03:22
Til: interest at qt-project.org
Emne: [Interest] Run script right before qmake finishes (or: embedd iOs framework)


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/20170106/8148742a/attachment.html>

More information about the Interest mailing list