Wrong xcodebuild error message when using both Project & Workspace

Originator:dfreniche
Number:rdar://19613056 Date Originated:27/01/2015
Status:Closed Resolved:Yes
Product:Developer Tools Product Version:ersion 6.1.1 (6A2008a)
Classification: Reproducible:Always
 
Summary:
If you launch xcodebuild from the command line, passing a Project AND a Workspace, it prints an error message:

"xcodebuild: error: You cannot specify both an Xcode 3 project and a workspace."

This is wrong. It should be better something like:

"xcodebuild: error: You cannot specify both a Xcode project and a workspace."

Steps to Reproduce:
1. type in Terminal.app
xcodebuild test -workspace FirmaDocMobile.xcworkspace -project FirmaDocMobile/FirmaDocMobile.xcodeproj -target FirmaDocMobileTests -sdk iphoneos8.1 -configuration Debug
2. look at printed message

Expected Results:
An error message like
"xcodebuild: error: You cannot specify both a Xcode project and a workspace."

Actual Results:
Error message:

"xcodebuild: error: You cannot specify both an Xcode 3 project and a workspace."

Version:
Version 6.1.1 (6A2008a) / OS X 10.9.5

Notes:


Configuration:


Attachments:

Comments

This is indeed resolved in Xcode 7 Beta 5 (7A176x). Now trying to build from the command line gives a nice:

xcodebuild: error: You cannot specify both an Xcode project and a workspace.

without any "Xcode 3" mention


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!