[Qt-creator] iOS: template plist not expanded

Mike Krus mike.krus at kdab.com
Mon Mar 27 09:40:42 CEST 2017


Hi

guess you can still do your own substitution step, something like:

plist.input = Info.plist.in
plist.output = $$OUT_PWD/Info.plist
QMAKE_SUBSTITUTES += plist
QMAKE_INFO_PLIST = $$OUT_PWD/Info.plist

Mike

> On 27 Mar 2017, at 08:15, Robert Bielik <Robert.Bielik at dirac.com> wrote:
> 
> Ah. So the documentation at http://doc.qt.io/qt-5/qmake-variable-reference.html#qmake-info-plist is wrong.
> 
> And @SHORT_VERSION@ for CFBundleVersion for example cannot get expanded, meaning that whenever I make a new version of the app I need to modify the template plist file.
> 
> Splendid.
> 
> /R
> 
>> -----Original Message-----
>> From: Eike Ziller [mailto:Eike.Ziller at qt.io]
>> Sent: den 27 mars 2017 09:02
>> To: Robert Bielik <Robert.Bielik at dirac.com>
>> Cc: qt-creator at qt-project.org
>> Subject: Re: [Qt-creator] iOS: template plist not expanded
>> 
>> 
>>> On Mar 27, 2017, at 8:30 AM, Robert Bielik <Robert.Bielik at dirac.com>
>> wrote:
>>> 
>>> Hi all,
>>> 
>>> I have copied the Info.plist.app template from Qt for adding some usage
>> descriptions with this in the .pro file:
>>> 
>>> QMAKE_INFO_PLIST = ../MyProject/resources/ios/Info.plist.app
>>> 
>>> However, when building, the @xxxx@ macros do not get expanded, so the
>> resulting plist file in the app looks like:
>>> 
>>> ...
>>>  <key>CFBundleExecutable</key>
>>>  <string>@EXECUTABLE@</string>
>>> a.s.o...
>>> 
>>> What am I doing wrong ?
>> 
>> This seems to work “as intended”:
>> 
>> https://bugreports.qt.io/browse/QTBUG-42916
>> 
>> Br, Eike
>> 
>> --
>> Eike Ziller
>> Principal Software Engineer
>> 
>> The Qt Company GmbH
>> Rudower Chaussee 13
>> D-12489 Berlin
>> eike.ziller at qt.io
>> http://qt.io
>> Geschäftsführer: Mika Pälsi,
>> Juha Varelius, Mika Harjuaho
>> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg,
>> HRB 144331 B
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

--
Mike Krus | mike.krus at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel: UK Office +44 1625 809908   Mobile +44 7833 491941
KDAB - The Qt Experts




More information about the Qt-creator mailing list