title: OCUnit tests to existing iOS project. "ld: file not found"
body: <p>I've been following this blog post: <a href="http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/">Adding unit tests to existing project.</a></p>
  
  <p>I'm getting this error however: </p>
  
  <blockquote>
    <p>ld: file not found:
    Build/Products/Debug-iphoneos/MyApp.app/MyApp
    Command
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
    failed with exit code 1</p>
  </blockquote>
  
  <p>I have my test target properties,</p>
  
  <blockquote>
    <p>Bundle Loader = $(BUILT_PRODUCTS_DIR)/MyApp.app/MyApp</p>
    
    <p>Test Host = $(BUNDLE_LOADER)</p>
  </blockquote>
  
  <p>(which both equate to: build/Debug-iphoneos/MyApp.app/MyApp)</p>
  
  <p>My wild guess is that those variables aren't pointing to the same location as the compiler. "build/Debug-iphoneos/..." vs "Build/Products/Debug-iphoneos/..."</p>
  
  <p>I could be totally wrong on that guess, but either way, does anyone know what's causing this error or how I would fix those environment variables?</p>
  
  <p>Thanks for any help,</p>
  
  <p>Sam</p>