Cannot test command-line swift apps

Originator:listrophy
Number:rdar://19200204 Date Originated:Dec 9, 2014
Status:Open Resolved:
Product:Developer Tools Product Version:6.1.1
Classification: Reproducible:
 
Summary:
There is no way to test my command-line swift application. I am disallowed from attaching a Test Target to my Command-Line Target. I cannot figure out how to embed a custom Framework (that holds all of my testable logic) into a Command-Line application.

Steps to Reproduce:
1. Create a new project as Command Line
2. Try to add a Cocoa Testing Bundle.
3. Try to embed a Framework.

Expected Results:
I should be able to add a Cocoa Testing Bundle that has my application as the "Target to be tested"

Actual Results:
Only the "None" option is available in the "Target to be tested" dropdown, while my application is grayed out.

If I try to work around the problem by putting all my logic into a Framework and testing just the framework, I cannot figure out how to embed that Framework into my Command Line project and get it to run (though it compiles).

Comments


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!