Xcode should set Embedded Content Contains Swift Code to Yes by default when adding a swift target.

Originator:amber
Number:rdar://20990902 Date Originated:17-May-2015 06:17 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (6E23)
Classification:Other Bug Reproducible:Always
 
Summary:
When adding a Mac OS X framework target to an Xcode project, and  Swift as your chosen language,  the build setting “Embedded Content Contains Swift Code” should be set to ‘Yes” not ‘No’ for that target.

Steps to Reproduce:
1) Start a new Xcode project, selecting an iOS framework type, with swift as your language.
2) Add a Mac OS X target to the project.
3) Attempt to run tests on the Mac OS X target.

Expected Results:
Expect test to run

Actual Results:
In the console you get an error “Library not loaded: @rpath/libswiftCore.dylib”

Regression:
I only know that it occurs in the case listed in Steps above, but may occur or not occur in other cases.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

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!