Release build target for XCode


#1

Hi!

Is there a way to make Projucer create 2 targets in an XCode project, one as Debug and one as Release?

edit: what i meant was in fact was an additional scheme for Release


#2

I don’t know if I got you right, but it’s the default behaviour of the Projucer to create a Debug and Release configuration when adding an Xcode exporter:

image

Are you looking for something different?


#3

It does create two configurations, but just one target, setup for Debug. To build for release, we need to Archive, but the product in the Builds folder is a symbolic link, that gets broken all the time.

That is a fine workflow for applications, but when the project generates a static library I want the actual lib in there, not a link. What I usually do is to have a target for Release, which will place the actual lib at the Builds folder.


#4

( “Build for profiling” or cmd-shift-I will build the release version )


#5

How could I miss that for all these years…
thanks!


#6

in your defence, they don’t make it obvious - I think most people would understand release rather than profiling