title: Xcode looking in the wrong place for product
body: <p>Okay, here's a little bit of context:</p>
  
  <p>I have just added a Mac OS Core Data Command Line Tool target to my iOS project. It's purpose is to simply use my iOS app's Core Data model and a JSON file (which I am adding default data to as I go) to create an SQLite database which I am going to use as the default database for my iOS app. The idea is to have this command line tool ready in my project so that when I add some default data to my JSON file, I just:</p>
  
  <ol>
  <li>Run the command line tool</li>
  <li>Go to products in the file navigator on the left</li>
  <li>Control click the command line tool product and hit show in finder</li>
  <li>Drag the .sqlite database that has been displayed along with all the other bundled files for my command line tool and drop it into my iOS app's resources</li>
  </ol>
  
  <p>But, I can't do this because the command line tool product is showing red in the navigator window because Xcode is looking for it at this path:</p>
  
  <p>/Users/kylejm/Library/Developer/Xcode/DerivedData/MyiOSApp-ggjlxrqiijmbqkgkucdargamkwld/Build/Products/Debug-iphoneos/</p>
  
  <p>Where as the it is actually in:</p>
  
  <p>/Users/kylejm/Library/Developer/Xcode/DerivedData/MyiOSApp-ggjlxrqiijmbqkgkucdargamkwld/Build/Products/Debug/</p>
  
  <p>I have been inspecting the <code>Build Locations</code> in the Build Settings but all the resolved paths are correct for both my iOS app and the command line tool respectively.</p>
  
  <p>What do I need to do to make Xcode look in the right place?</p>
  
  <p>Thanks so much for any help in advance.</p>
  
  <hr>
  
  <p>I just clarified my scenario/problem for the answer by bauerMusic like so:</p>
  
  <p>Thanks for your answer but I don't think you quite understand my scenario or problem. The Command Line Tool (CLT) target is a part of my project, and therefore has a executable product in the product folder (shown in red until first build and run). When I run this command line tool, it's product in the products folder remains red because Xcode is looking for the product in the wrong place for it.</p>
  
  <p>I've put it in the description so you all understand my question as clearly as possible.</p>