Rob Booth
Rob Booth

Reputation: 1782

Xcode commandline building with dependent project

I'm building a iOS application that uses a library that I've built using jverkoey's framework structure. All is well and good, until I try to let my CI environment (Jenkins) build my project. Jenkins builds using the commandline and when it does so my dependent framework gets built in it's own build directory, and when my main application builds in it's own directory it can't find the framework.

As a test I copied the output from my dependent frameworks build directory into the main apps build directory and re-ran my commandline build and everything works fine. So what I think I have to do is update my Jenkins build scripts to be able to move the dependent build output before building the main app, or change them to all build in the same directory as XCode does from the IDE with it's DerivedData directory.

The question is, how? I'm no expert when it comes to building from the commandline and I could really use some help here.

Upvotes: 1

Views: 909

Answers (1)

Rob Booth
Rob Booth

Reputation: 1782

Ok, I figured this out. Just incase anyone else has a similar problem you can set the SYMROOT setting to whatever directory you want when running xcodebuild.

xcodebuild -target MyTarget SYMROOT=/Build/MyProj/Sym.root

Upvotes: 4

Related Questions