Questions tagged [xcconfig]
101 questions
73
votes
6 answers
How do I configure full URLs in xcconfig files
I have an xcconfig file which contains a configuration for which server my app should hit. In debug mode, this will be a different server than for release builds.
The problem I have is that a URL of the form http://www.stackoverflow.com is treated…

atreat
- 4,243
- 1
- 30
- 34
66
votes
2 answers
How can I use .xcconfig files in Xcode 4?
I just switched over to Xcode 4 and I'm having trouble working with .xcconfig files for build settings. My targets that already had files assigned in Xcode 3 are all set up - a column titled Config.file shows up in the Levels view of Build Settings.…

Luke
- 7,110
- 6
- 45
- 74
60
votes
18 answers
Incorrect path for Pods.debug.xcconfig in Xcode?
so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up.
I was able to fix the Manifest.lock and Podfile.lock errors, but now I am getting this error:
The file “Pods.debug.xcconfig” couldn’t be opened…

mais-oui
- 2,691
- 6
- 19
- 15
49
votes
8 answers
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 =…

Martin Cote
- 28,864
- 15
- 75
- 99
44
votes
2 answers
Is there a way export xcode build settings to .xcconfig file?
Is it possible to export xcode build settings to .xcconfig file? Other than just copy-paste it to text file line-by-line.
Thanks!

almas
- 7,090
- 7
- 33
- 49
32
votes
2 answers
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…

KONG
- 7,271
- 6
- 28
- 27
32
votes
2 answers
Edit Xcode xcconfig file and Cocoapods
I want to edit the xcconfig file, but unfortunately Xcode only allows 1 xcconfig file per configuration, and that is Pods.xcconfig because I'm using Cocoapods
So how can I edit the xcconfig without hurting Cocoapods
I can think of several ways
Make…

onmyway133
- 45,645
- 31
- 257
- 263
29
votes
5 answers
Using CocoaPods with multiple projects
I have a workspace that contains:
myiPhone.xcodeproj
sharedStuff/sharedStuff.xcodeproj
sharedStuff.xcodeproj builds a static library that is a dependency to myiPhone.xcodeproj (for simplicity assume that each project has a single target).
Now I…

Mihai Damian
- 11,193
- 11
- 59
- 81
17
votes
4 answers
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…

Martin Cote
- 28,864
- 15
- 75
- 99
14
votes
1 answer
Xcode: Inherit `configuration`s from parent project - not possible?
TL;DR
Is it possible to inherit custom configurations from parent project? No, not asking about inheriting some target setting.
Configurations and preprocessor macros/flags
Every project in Xcode is initialized with the two standard configurations…

Sajjon
- 8,938
- 5
- 60
- 94
11
votes
3 answers
When to use .xcconfig files
I have just set up three different configurations in my project for debug preview and release. No in Xcode there is an option to specify different .xconfig files per configuration. I am now wondering in what circumstances they should/could be used…

Besi
- 22,579
- 24
- 131
- 223
11
votes
1 answer
Cocoapods and custom xcconfig
I am trying to use Cocoapods with some custom configurations in an iOS project.
I have 3 (Dev, Stage, Prod) and each of them has some custom GCC_PREPROCESSOR_DEFINITIONS.
I have seen around people suggesting to us #include ,…

pasine
- 11,311
- 10
- 49
- 81
9
votes
1 answer
XCConfig not refreshing until Xcode is restarted
I want to have a single target and several compilation schemes, and have some compiler definitions declared by a pre-action script of the schemes.
The pre-action script is generating a comp.xcconfig file which is #included by…

ishahak
- 6,585
- 5
- 38
- 56
9
votes
1 answer
CocoaPods' Pods.xcconfig conflicts with existing ones
I've a project with several targets. There is a xcconfig file associated to the project and several xcconfig files associated to the targets.
Now I want to incorporate a third party library via CocoaPods. After $ pod install CocoaPods screwed the…

CouchDeveloper
- 18,174
- 3
- 45
- 67
8
votes
1 answer
Why would Xcode not use the build configuration settings from my xcconfig file?
EDIT: I figured one could have this problem with any build configuration setting, not just OTHER_LDFLAGS and I've changed the title accordingly and removed irrelevant details from the question.
I have a simple Xcode project MyApp. MyApp.xcconfig is…

dmeyerson
- 495
- 4
- 13