[Qt-interest] Application name with a space in Xcode?
Peter Lee
ptle at risingsoftware.com
Tue Jan 12 15:35:36 CET 2010
We use Qt .pro files to generate Visual Studio and XCode projects for
all our work - we don't ever have VS or XCode projects in our version
control.... works well. All our ui, cpp, h files are references in the
pro files.
With regards to your problem - I'd look at the QMAKE_INFO_PLIST variable
for your pro files - that allows you to set different Info.plist files
for different situations. So - for our 'debug' builds, we have one that
is fairly similar to what qmake would generate.... but for our 'release'
builds -we have a different one again, that changes the CFBundleName,
versions etc.
Regards,
Peter Lee
John Weeks wrote:
>> We have ended up with a single word TARGET, with no spaces, and then
>> rename the app bundle when we actually deploy, which works fine.
>> However, as part of this, we do use custom Info.plist files, and have
>> different ones for debug and release builds. With regards to this
>> feature, the important key is CFBundleName;
>>
>> Debug:
>> <key>CFBundleName</key>
>> <string>@EXECUTABLE@</string>
>>
>> Release:
>> <key>CFBundleName</key>
>> <string>@EXECUTABLE@ 4</string>
>>
>
> Thank you, Peter. When you're just getting going it can be hard to tell if
> you're missing something obvious!
>
> I've tried a number of variations on this theme. I set the target to
> "IgorPro" and I can get a clean build of IgorPro.app. I see that in our
> presently shipping project the our CFBundleName is Igor Pro. So I changed
> the info.plist I find in the Qt project folder to have Igor Pro. That
> results in a broken application bundle because the info.plist inside the
> bundle has Igor Pro, but the executable inside the bundle is still IgorPro.
>
> Naturally, I can set things up in the Xcode project to do what I want. But
> won't that break as soon as I need to run qmake again? Won't that happen if
> I add ui files to the project?
>
> Regards,
> John Weeks
>
> WaveMetrics, Inc.
> Phone (503) 620-3001
> Fax (503) 620-6754
> email support at WaveMetrics.com
>
>
>
>
--
Peter Lee ptle at risingsoftware.com
-----------------------------------------------------------------------
Rising Software Australia Pty. Ltd. http://www.risingsoftware.com/
Publishers of 'Auralia' - Ear Training and 'Musition' - Theory Training
Ph: +61 3 9481 3320 FAX: +61 3 9481 3380 USA Freecall: 1 888 667 7839
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100113/42b467b8/attachment.html
More information about the Qt-interest-old
mailing list