Command line apps cannot link to 3rd party Swift frameworks

Originator:victor.jalencas
Number:rdar://20250458 Date Originated:2015-03-21
Status:Open Resolved:
Product:Developer Tools Product Version:6.2
Classification: Reproducible:Always
 
Summary:
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'"

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

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!