I have a project which uses a nested project dependency which in my case is RestKit.
In Xcode
When I build the project from within Xcode RestKit also gets compiled and places its headers here:
~/Library/Developer/Xcode/DerivedData/myproject-blrrqydtywxuereiowkehhhcbozj/Build/Headers
The Header Search Path value is set accordingly:
${TARGET_BUILD_DIR}/../../Headers
From the Terminal
However, when I build my project from the Terminal I the Headers end up here:
~/MyProjectSourceFolder/RestKit/Build/Headers
And I get an error during compilation that RestKit is not found.
Now how do I get xcodebuild to use the same location or the same build environment so that my build also works from the console? Thanks a lot for your help.
I get my script to work the same, when I specify the
-scheme = MySchemeoption.