Vineel Shah
Vineel Shah

Reputation: 1058

link arbitrary libraries when building from command line in XCode 4.3

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.

Upvotes: 0

Views: 2220

Answers (1)

Rob Napier
Rob Napier

Reputation: 299265

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.

Upvotes: 1

Related Questions