Questions tagged [xcconfig]
101 questions
2
votes
0 answers
Is there some say to link a SPM only for one config?
Firstly I have a project with 3 config: DEV, PRE and PRO and only one target. Secondly I have my business logic in a separated module. This module contains some files to mock server responses. The objective is that this files only can be inserted…

93sauu
- 3,770
- 3
- 27
- 43
2
votes
0 answers
xcconfig has no effect when running 'swift package generate-xcodeproj'
I am creating an xcode proj with swift package generate-xcodeproj. The resulting project has a few targets, that correspond to the dependencies of the project. Some of them have IPHONEOS_DEPLOYMENT_TARGET set to 8.0, some to 13.5, and the…

JonasVautherin
- 7,297
- 6
- 49
- 95
2
votes
0 answers
Conditional Statements for App Extensions
I am trying to add Today Widget to my app and it needs to access the same file the main iOS app accesses. But in this file there's code the widget doesn't need access but needs to stay in that file. Is there some type of conditional I can use that…

fphelp
- 1,544
- 1
- 15
- 34
2
votes
1 answer
Share xcconfig files between multiple projects in a workspace
I have an Xcode workspace with a number of projects in it. The projects tend to have common configuration such as their swift version or iOS deployment target. I'd like to define these settings using xcconfig files.
If I create an xcconfig file in a…

Benjohn
- 13,228
- 9
- 65
- 127
2
votes
1 answer
xcodebuild: xcconfig conditional variable assignment is broken in new build system of Xcode 10
In Xcode 10 while using new build system, if your xcconfig contains any conditional variable assignment, xcodebuild will generate an error saying "illegal instruction 4". For example:
FOO[sdk=macosx*] = buzz
After removing "[sdk=macosx*]",…

Kai
- 155
- 1
- 7
2
votes
1 answer
how to tell xcode to refer a specific xcconfig file for a configuration from command line
Is their a way to set xcconfig file for a project from command line much like how cocoa pods does on running pod install ?

user1398615
- 289
- 1
- 7
2
votes
0 answers
Force Xcode 8.3 to use changes from .xconfig file
I'm currently using .xcconfig files to manage various build settings for an iOS app and generally it works great. I've found if I only modify the value(s) in the .xconfig files between builds then those changes do not get built into the app. I'm…

litebrite
- 165
- 1
- 3
- 11
2
votes
1 answer
CocoaPods warnings with xcconfig linker flags
I'm trying to build a good architecture for my iOS app and I'm encountering problems with my xcconfig configuration. I have a couple of CocoaPods and it is only natural that they contain warnings. I've been silencing those with inhibit_all_warnings!…

Legoless
- 10,942
- 7
- 48
- 68
2
votes
1 answer
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…

g-Off
- 105
- 1
- 5
2
votes
0 answers
How to append OTHER_LINKER_FLAGS in xcconfig
I am using GDataXML, which requires
// libxml includes require that the target Header Search Paths contain
//
// /usr/include/libxml2
//
// and Other Linker Flags contain
//
// -lxml2
In my xconfig, I have done the first part with…

Juguang
- 621
- 2
- 5
- 15
2
votes
1 answer
reading user define build setting in xcode
I have a user defined variable called "ENVIRONMENT"
I have a plist with this entry
Environment = ${ENVIRONMENT}
in my xcconfig:
ENVIRONMENT=Dev
I also set the configuration file for the project to see my xcconfig file.
I know this part works…

Nick Turner
- 927
- 1
- 11
- 21
1
vote
1 answer
xcode 4 -- is there a way to echo stuff in config files?
I am working on a deeply nested Xcode project that uses config files to control settings. There are projects within projects within projects. Is it possible to echo stuff in the config files? In trying to debug it, I am finding it would be really…

William Jockusch
- 26,513
- 49
- 182
- 323
1
vote
1 answer
How can I print to console from an xcconfig file?
I'm trying to debug some internal paths within xcconfig files, and I'd love to be able to echo/print/put the paths to see exactly where they're pointing.
Googling "What language is xcconfig?" doesn't give much besides that it's a text file (aren't…

h.and.h
- 690
- 1
- 8
- 26
1
vote
0 answers
XCode - Adding Local swift packages in the application target using xcconfig file
I have a white-label project which has multiple app targets. All the target use the common code and their specific assets.
All the common code is divided into Core Modules and Feature Modules. All of these modules are Local Swift packages in the…

tarun_sharma
- 761
- 5
- 22
1
vote
0 answers
Setting app icon in xcconfig file not working
I am trying to set different app icon sets for different schemes in Xcode (for an app exclusively for iOS). I have an xcconfig file for dev, test, and prod. In my Development.xcconfig I have the following.
ASSETCATALOG_COMPILER_APPICON_NAME =…

orbital_mechanic
- 21
- 5