Questions tagged [xcconfig]

101 questions
1
vote
0 answers

Xcode 4.1 building dependent project with different compiler, ignoring GCC_VERSION

I've moved my project from gcc to clang, and Xcode (4.1) builds it using clang, but my project depends on another xcodeproject (three20), and Xcode builds this using gcc. I want it to build everything using clang. I'm using xcconfig files, and I set…
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55
1
vote
1 answer

Is there a way to access variables inside of a .xcconfigfile from the terminal?

I have an .xcconfig file that I want to access via the terminal to access variables in the file. Is there a command or is there some way to do this? For example I have a variable called Build_Code = 1234. How would I access that?
kelson_99
  • 37
  • 2
1
vote
0 answers

Loading different .xcassets with multiple configurations (.xcconfig files)

I've to achieve setting up different color assets and image assets for each configuration using xcconfig file in xcode project
Sand'sHell811
  • 358
  • 3
  • 15
1
vote
0 answers

Flutter generates multiple .xcconfig files in background how to fix it?

I'm building a flutter app and recently when i did git status I got this https://prnt.sc/t5moij I'm not sure why is this happening and how to solve it since I think it behaves like a trojan virus more or less... Any advice is appreciated.
1
vote
1 answer

Differentiate between iOS and macCatalyst in xcconfig file

In an xcconfig file it's possible to use sdk and arch specifiers. For example: BUILD_SETTING_NAME[sdk=sdk] = value for specified sdk BUILD_SETTING_NAME[arch=architecture] = value for specified architecture How can I use this to use a different…
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165
1
vote
0 answers

Xcode header search path is not correct after pod install

I have an iOS Xcode project that uses cocoapods. I made changes in the Podfile to remove a pod. While running pod install, it complained about cocoapods needing an update. so I updated cocoapods and it upgraded to 1.7.5 from 1.5.3. I ran the pod…
learner
  • 139
  • 1
  • 13
1
vote
1 answer

How to set COMPILER_INDEX_STORE_ENABLE=NO using fastlane scan?

From fastlane scan documentation xcconfig Use an extra XCCONFIG file to build your app How do you change COMPILER_INDEX_STORE_ENABLE=NO?
Ted
  • 22,696
  • 11
  • 95
  • 109
1
vote
0 answers

Flutter pod install generates invalid path for .xcconfig files

i have issues with integrating flutter in my existing iOS(swift) application, according to the docs in order to user flutter i added this in my pod file: flutter_application_path =…
Bar
  • 603
  • 1
  • 7
  • 19
1
vote
1 answer

Issues defining urls in xcconfig file

I'm trying to use xcconfig file to create different configurations for development, qa & production versions of my application. I've different api end-points for those 3 environment, so I've defined that value in my config file like: api_url =…
Midhun MP
  • 103,496
  • 31
  • 153
  • 200
1
vote
1 answer

In Xcode run-script how can I pring the real value from plist edited by xcconfig

I have my normal project and the default plist file, and I also created a xcconfig file. First I added one key-value in my plist whose key is called custom_mode and value is connected to the value in xcconfig file like this: //In .plist…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
1
vote
0 answers

In Xcode changing the value from build settings in xcconfig is not working

I have my project and my appConfig.xcconfig file. I would like to change the Debug_Information_Format value in the build settings. What I did is DEBUG_INFORMATION_FORMAT = dwarf-with-dsym I am using one single xcconfig for both Debug and Release,…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
1
vote
0 answers

xcconfig files with XCode9 for PROVISIONING_PROFILE_SPECIFIER

Until now, we were using the xccofnig file per scheme to select the proper provisioning profiles. For example the "PROVISIONING_PROFILE_SPECIFIER" was set to different value in each of the scheme specific xcconfig file and them "xcodebuild" would…
sanjayp
  • 41
  • 3
1
vote
1 answer

Xcode 8 Alter Configuration via Command Line

I have a need for two pieces of functionality that I have not been able to find support for. The first is to alter the name of a Xcode configuration via a bash script. For this I have tried: xcodebuild -target "target name" -configuration…
AgnosticDev
  • 1,843
  • 2
  • 20
  • 36
1
vote
1 answer

XCConfig syntax

If I had an Adhoc.xcconfig where I defined a variable: PREPROCESSOR_DEFINITIONS = IS_ADHOC=1 CRASHLYTICS=1 and in a run script, there's a check that looks like: if [ "${PREPROCESSOR_DEFINTIONS/CRASHLYTICS=1}" = "$PREPROCESSOR_DEFINITIONS" ] ; then …
barndog
  • 6,975
  • 8
  • 53
  • 105
1
vote
2 answers

Xcode: automatically add xcconfig files

I'd like to use the same .xcconfig files for my Xcode projects so that I automatically have the same warning settings across all my projects. I would love to create e.g. a Cocoapod which I include via Podfile and then copy the config files over or…
swalkner
  • 16,679
  • 31
  • 123
  • 210