Question

I know it's a bit weird, but I need to build my XCode project from the command line, and I need to be able to specify which libraries to link to at build time. In an old-fashioned makefile, I'd simply specify the .a's for the libtool command. How do I make this happen in XCode 4.3, using xcodebuild? I'm specifying a workspace and scheme as parameters.

Was it helpful?

Solution

Pass OTHER_LDFLAGS="/path/to/library /path/to/another" on the xcodebuild commandline. See the Build Settings Reference for all the things you can pass.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top