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

As the Info.plist file is preprocessed too, you can use this approach: Define a User defined setting in your build settings, for Example CLASS_NAME. And a key to your Info.plist-file. Name the key CLASS_NAME and set the value to ${CLASS_NAME}. You can then access this setting by: NSString* className = [[[NSBundle mainBundle] infoDictionary] valueForKey:@”CLASS_NAME”];

Is there a way export xcode build settings to .xcconfig file?

This SO answer helped me. Show the package contents of your project file (MyProject.xcodeproj) by two-finger clicking (right-clicking) on it in finder, then open the ‘project.pbxproj’ file in a text editor. Look for the section XCConfigurationList. It starts with /* Begin XCConfigurationList section */. You will find all your targets and their respective builConfigurations. Now … Read more

How to append values in xcconfig variables?

For reasons stated in other answers to this question, you can’t inherit values easily. I recommend defining your settings in cascade. Let’s assume APP is your project prefix and make this simple defining only a few CFLAGS: platform.xcconfig: APP_PLATFORM_CFLAGS = -DMAS=1 project.xcconfig: #include “platform.xcconfig” APP_PROJECT_CFLAGS = -DBETA=1 target-one.xcconfig: #include “project.xcconfig” APP_TARGET_CFLAGS = -DSUPER_COOL=1 #include “merge.xcconfig” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)