[Qt-interest] Application name with a space in Xcode?

Peter Lee ptle at risingsoftware.com
Tue Jan 12 00:57:19 CET 2010


We had the same issue - played around for a while, but couldn't get it 
going.
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>

Regards,

Peter Lee

John Weeks wrote:
> Hi, folks. I'm just getting started with Qt, preparing to port my company's
> application to Qt.
>
> I installed the 4.6 SDK version of Qt.
> I have Xcode 3.1.2 installed on Mac OS X 10.5.8.
> gcc version 4.0.1 (Apple Inc. build 5490)
>
> I am now trying to figure out the best organization for files, projects,
> etc. and came across a problem:
>
> I want to create an application name with a space in it. In my .pro file I
> have this line:
>
> TARGET = "Igor Pro"
>
> The quotes are necessary to avoid having the name set to simply "Igor". I
> can open the .pro file in Creator and it builds the desired application. If
> you use qmake to create an Xcode project, however, the Run Script phases Qt
> Qmake and Qt Preprocessors are created with command lines that need quotes,
> i.e.:
>
> make -C /Users/johnweeks/Documents/IgorDev/Qt_Learning/junk -f Igor
> Pro.xcodeproj/qt_makeqmake.mak
>
> As written, these commands don't run.
>
>
>
> Is this simply a bug in qmake? Or is there something I should be including
> in the name to cause proper quoting or backslashing to make that command
> run?
>
> Thanks!
>
> Regards,
> John Weeks
>
> WaveMetrics, Inc.
> Phone (503) 620-3001
> Fax   (503) 620-6754
> email   support at WaveMetrics.com
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>   

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




More information about the Qt-interest-old mailing list