Questions tagged [xcconfig]
101 questions
0
votes
0 answers
How to use XCCONFIG in XCode 8.3?
I have a set of variables that changes depending on the environment (debug and release) in which it is running.
I have created three xcconfig files (common, debug and release), see below the content from each file.
Common.xcconfig
BACKEND_URL =…

Luciano Borges
- 817
- 3
- 12
- 31
0
votes
1 answer
Header file not found when xcconfig file is used in ios Project
I am using xcconfig files for defining keys in debug and release mode. This is my podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'MainTarget' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod…

Bharath Reddy
- 636
- 1
- 5
- 21
0
votes
0 answers
Can cocoapods commands be run without touching the code dependencies?
I work on a team that is an iOS contractor for a larger company. We are helping the large company build a iOS app with Xcode and we use Cocoapods to manage our dependencies in the project. However, the large company has internal Cocoapods that are…

Benjamin Van Citters
- 338
- 2
- 11
0
votes
0 answers
Create swift pod contains objc headers
I'm going to create a swift pod that contains code in non-module objc header, in my case is . So it doesn't pass the pod lint and said couldn't find the functions. And I tried this:
s.xcconfig = {…

Klein Mioke
- 1,261
- 2
- 14
- 23
0
votes
1 answer
Getting xcconfig configuration file name from code
Is there a way in code to get the name of the .xcconfig file being used?
As in the picture below I would like to be able to find out the configuration is "Lab2"

pflous
- 573
- 6
- 17
0
votes
1 answer
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…

drunknbass
- 1,662
- 1
- 13
- 19
0
votes
0 answers
Read URL string from .xcconfig file in code
How can I load URL string value from .xcconfig file in code? I have custom string property in it:
BASE_URL = "https://test.custom.com/api/4.0/"
I need to load this URL in code, so I added in Info.plist file…

Deny
- 1,441
- 1
- 13
- 26
0
votes
1 answer
how to set target for a file/bundle in xcconfig file
As we known, we can set target membership for a certain file/bundle in right navigator of xcode.
But now I want to set target membership in a certain configuration. So how can I set target for a file/bundle in xcconfig file?
Many Thanks!

Yuqing Huang
- 785
- 2
- 7
- 7
0
votes
1 answer
xcconfig files device families - universal
I am changing the name of my app based on the device it is running on through configuration files, i.e. I put in an _iPhone, _iPad or _Universal in the display name accordingly.
To do this I am using xcconfig files as…

John Lane
- 1,112
- 1
- 14
- 32
0
votes
3 answers
iOS: Specify code sign identity in .xcconfig file by target
So I have a .xcconfig file set up and wired to a specific target (there are more targets in the project) in the Project settings on the Info tab in the Configurations pane.
The contents of the .xcconfig file look like this:
//:configuration =…

Zoltán Matók
- 3,923
- 2
- 33
- 64
-1
votes
1 answer
What’s the best practice to handle multiple environments for one app?
I'd like to know what is the best practice to have multiple apps for my app in multiple environments? I see some engineers use targets and other use xcconfig files to change the value of bundle identifier, app name, code signing certificates and so…

Faisal AlMaarik
- 27
- 4