2

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
  • Why do you need to do this? What is the actual build issue you are trying to solve? – Jeffery Thomas May 07 '17 at 12:02
  • Ok.. so I have multiple xcconfig files with different build settings. What I want is to refer a particular xcconfig file at build time through scheme pre action.. i.e. their will be a scheme for each xcconfig to load that configuration at build time. – user1398615 May 07 '17 at 12:12

1 Answers1

0

So to answer your question directly, xcodebuild has the flag -xcconfig filename. Read the documentation for the command with man xcodebuild.

Jeffery Thomas
  • 42,202
  • 8
  • 92
  • 117
  • Thats one way I know, I needed the way pods does it to set the xcconfig file directly in project configuration. – user1398615 May 09 '17 at 06:03