title: where does xcodebuild load settings (from Xcode project or from what is set in makefile)?
body: <p>I have a makefile which uses xcodebuild to build Xcode project. 
  My question is </p>
  
  <p>Is it the settings in a makefile (which uses xcodebuild) or the settings in the Xcode project going to be used when calling the makefile to build a project?</p>
  
  <p>For example, if I have some settings in a makefile such as:</p>
  
  <pre><code>SDKROOT =/Developer/SDKs/MacOSX10.5.sdk ARCHS="i386 x86_64"
  CXXFLGS =-I/Users/XXYY/dev/Frameworks/Headers -DUNIX   (just an example to show where to check header files, this is different from what is set in the Xcode project)
  
  target:
         xcodebuild build -target $@ -configuration Release 
  
  
   ... ...
  </code></pre>
  
  <p>Will the setting here (SDKROOT and CXXFLGS) be used? </p>
  
  <p>If the answer is yes, then I can set up my Xcode project (called project A) to link to some of my own frameworks put in $(HOME)/Library/Frameworks, then ship it to users.</p>
  
  <p>At the same time, when I build this project A, I can set it to link to the frameworks which is build the same time as I build project A in my makefile. </p>
  
  <p>This way, when users open my project A, the frameworks will be linked to their $HOME/Library/Frameworks. (The framework will be asked to copy there )</p>
  
  <p>or Maybe I can ask how I can set the search path for my own frameworks when I try to give out a project (which uses my own frameworks)? The process in the makefile will  be:  first build my frameworks, then my project (obviously, my project will link to the new build of the framework).  </p>
  
  <p>If I set the path for the framework to link to myframeworkfolder/build/Release/<em>*</em>.frameworks, this path needs to be reset when the project is copied to other users. If I set the path for the framework to link to , for example, /Library/Frameworks, then other users don't need to change the path. Anyone has suggestions what I should do this right? Or should I set the path for my framework to /Library/Frameworks, then when I finish building the framework, copy it to /Library/Frameworks, then build my project. Is it the right way to do it?</p>
  
  <p>Thanks. </p>