title: Command-Line Testing Using Cocoa Touch
body: <p>I have developed several test for an application, and I would like to run this application using the command-line. I have read <a href="https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/A2-command_line_testing/A2-command_line_testing.html" rel="nofollow">this tutorial</a>; however, I haven't been able to run them. When executing the following command:</p>
  
  <pre><code>xcodebuild test -project MyApplication.xcodeproj -scheme MyApplication -destination 'platform=iOS Simulator,name=iPhone 6'
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>Testing failed:
      Linker command failed with exit code 1 (use -v to see invocation)
  ** TEST FAILED **
  </code></pre>
  
  <p>I cannot understand this error, so I wonder if I have to try a different approach or what I am doing wrong. I have to add that I am using KIF for testing.</p>