Xcode 7.1.1: Embedded Swift files in Playground Can’t Use External Frameworks

Originator:SlaunchaMan
Number:rdar://23756130 Date Originated:04-Dec-2015 12:41 AM
Status:Duplicate/21348487/Open Resolved:
Product:Developer Tools Product Version:Xcode 7.1.1 (7B1005)
Classification:Other Bug Reproducible:Always
 
Summary:
If you have a playground in a workspace that also has a custom framework, you can import the framework in the main playground, but if you add a new Swift file to the playground, you can’t import the framework from it.

Steps to Reproduce:
1. Create a workspace with a playground and an external framework (see attached sample project).
2. Create a new Swift source file in the playground.
3. Try to import the framework in the new Swift source file you created in step 2.

Expected Results:
You can import and use the framework’s module.

Actual Results:
“No such module ‘FRAMEWORK_NAME’”

Notes:
See attached workspace. Try to import MD5Digest into “Day4.swift”.

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!