xcconfig

How to append values in xcconfig variables?

I'm using Xcode and .xcconfig files. I'm trying to append some values in the preprocessor definitions, but I simply can't make it work. I tried the following (as well as many variations of this), but no luck so far: GCC_PREPROCESSOR_DEFINITIONS = '$(GCC_PREPROCESSOR_DEFINITIONS) NEW_VALUE' The NEW_VALUE symbol is simply never added t...

XCode: How to set debug environment with multiple xcconfig files?

I'm using XCode 3.2 with xcconfig files. The files are organized by target. For example, I have a debug.xcconfig file and a release.xcconfig one. Both uses common settings, so I added a shared.xcconfig file which is included by both. The shared.xcconfig file looks like this: GCC_C_LANGUAGE_STANDARD = c99 GCC_WARN_ABOUT_RETURN_TYPE =...

XCode xcconfig: Configuring a dependency based on the target

In the quest to resolve the Objective-C namespace issue I'd like to experiment with prefixing a dependency's Objective-C classes based on the target being built. As an example, suppose I have in my shared library (ObjCStaticLib) a class (CWindow). I have two plugins (A and B) that will use this CWindow. To avoid A's CWindow from collidi...

Xcode xcconfig file and build rules

I have an Xcode project that contains many sub-projects. The main project file and all sub-projects have the same xcconfig file. Some of the sub-projects currently have a build rule set on them to use the Intel compiler for C++ files. I'm wondering if there is a way to move this build rule into the xcconfig file so that I can easily turn...

Environment variable in xcconfig won't expand in Settings.bundle/Root.plist

I have defined my own environment variable (VERSION) in a .xcconfig file and based my configurations on that as described at http://www.silverchairsolutions.com/blog/2008/03/automating-cocoa-deployments-with-sparkle-and-xcode. My environment variable is indeed expanded in Info.plist but not in my Settings.bundle/Root.plist. PRODUCT_NAME ...

Recommended way to set up xcconfig files

Is there any best recommended way for setting up xcconfig files? Where does the projects related fields go and where do target related go? What about multiple targets? ...

How to target specific arch during iphone universal(arm6/arm7) build

Im trying to define different ld and c flags for different arch. im using this.. OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla and whatever is set here doesnt make it into the build.. even setting as arm7 doesnt make a difference. Tested on both arm6 and arm7 devices. BTW im using .xcconfigs for my project. ...

iphone: get User Defined variable in Target's setting by code?

My project have multi-targets. Each target has its own Class file for setting stuff. I want to store that Class name in a target setting (Info.plist or Target's Building setting). So that I can define which class I need to use in each target based on this setting. According to this question, I put "a target-specific User Defined variabl...