Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode4 project with custom configuration name vs dependency library Debug/Release?

I have an Xcode app project with available configurations "Foo", "Bar", and "Baz". This project is dependent on a static library with configurations "Debug" and "Release".

Xcode4 is building products from the app project into a "Foo-iphoneos" directory, and products from the library project into a "Release-iphoneos" directory.

What is the best practice for having these two projects share the same build products directory?

like image 764
strawtarget Avatar asked Apr 06 '11 06:04

strawtarget


1 Answers

You can add the following path to library search paths for any non-standard configuration:

"$(BUILT_PRODUCTS_DIR)/../Release-$(PLATFORM_NAME)"

This works for me with xcode 4.6. I'm not sure if there is a way to control which configuration will get built for the dependent sibling projects, but for my purposes Release was what I wanted.

like image 108
joshrl Avatar answered Nov 08 '22 00:11

joshrl