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

QMAKE_POST_LINK += "cp somefile $CODESIGNING_FOLDER_PATH"


-Richard

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

Hi,

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,
Bernhard

[1] https://bugreports.qt.io/browse/QTBUG-51951
[2] https://github.com/lukevear/qt-xcodeproj-embeded-frameworks

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to