Command line apps cannot link to 3rd party Swift frameworks

Number:rdar://20250458 Date Originated:2015-03-21
Status:Open Resolved:
Product:Developer Tools Product Version:6.2
Classification: Reproducible:Always
Due to the manner in which the Swift runtime and frameworks are linked into app bundles, command line apps are excluded from using 3rd party frameworks.

This seriously limit the composability of apps, and limits the use of frameworks for which you don't have the source code.

Steps to Reproduce:
1. Create a new Command line app in Xcode
2. Create a new project for a Swift framework in the same workspace
3. Link to the framework from the command line app and build it

Expected Results:
I expect the app to be correctly linked an run

Actual Results:
"<unknown>:0: error: could not build Objective-C module 'MyFramework'"

Xcode 6.2 (6C131e), OSX 10.10.1 (14B25)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!