title: Is it possible to force an Xcode project to clean before it builds?
body: <p>In my Xcode project, I've created a symbolic link script in the target that allows me to edit my scripts and see the updates live. Unfortunately, a side-effect of this is that if I don't clean before building again, I get the following error message:</p>
  
  <pre><code>ln: /Users/atg/Desktop/Projects/Xcode Projects/Debug/Xsera.app/Contents/Resources/: Directory not empty
  </code></pre>
  
  <p>for the following line in my script:</p>
  
  <pre><code>ln -F -s -f "$PWD/../Resources/" "$BUILD_ROOT/Debug/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
  </code></pre>
  
  <p>I know that this is the correct line because it works when I build after cleaning, but doesn't work if I build <em>without</em> cleaning.</p>
  
  <p>What I would like to do, therefore, is to figure out how to allow builds without cleaning. I think the easiest way to do this would be to force a clean before I build, but if anybody knows any other way of removing the error, that would be great as well.</p>
  
  <p>Thanks!</p>