On 2014-09-22, at 05:56 AM, Sorvig Morten <[email protected]> wrote:

>> 
>> And the Info.plist should *always* set CFBundleExecutable to QtCore. To use 
>> the debug version you set the DYLD_IMAGE_SUFFIX environment variable to 
>> _debug prior to execution.
> 
> A minor case: What would you do for debug-only builds?

You don't do that. :) But I'd give the same answer - set DYLD_IMAGE_SUFFIX. You 
can add it to LSEnvironment in your application's Info.plist for Finder 
launches as well.

>> 
>> As far as I'm aware, we already do this correctly (aside from Info.plist 
>> being in the wrong place), and the only reason _debug is showing up in an 
>> Info.plist somewhere is probably due to some simple typo or omission.
> 
> Looks like it comes from the @EXECUTABLE@ -> var(“QMAKE_ORIG_TARGET”) 
> substitution in unixmake2.cpp. 
> 
> I think the release build is racing the debug build, causing “_debug" to 
> appear in some frameworks. So for a release+debug build we have two options:
> 1) Use the release Info.plist. (the current suggested approach)
> 2) Make sure they are identical.

What you've done on Gerrit (approach 1, essentially) is correct.

> Morten
> 
> 
> 
> _______________________________________________
> Development mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Jake Petroules - jake.petroules at petroules.com
Chief Technology Officer - Petroules Corporation
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to