Playgrounds extra source file cannot import third-party frameworks

Originator:neocool2
Number:rdar://26482686 Date Originated:25-May-2016 05:06 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.3.1
Classification:Serious Bug Reproducible:Always
 
Summary:

So Playgrounds allow us to import frameworks from the same workspace they are located in, which is great for trying out third party frameworks or providing Playgrounds to users of third party frameworks.

Unfortunately, importing frameworks does not appear to be working for additional source files in the Playground. This feels like a bug, but might be intended functionality.

Steps to Reproduce:

1. Download the example project
2. Build the “ContentfulPlayground” for simulator, so that it is available for import
3. Look at Contentful.playground/Sources/file.swift

Expected Results:

File should compile, no errors should be displayed

Actual Results:

“No such module” for third party framework

Regression: -

Notes:

If you delete or uncomment the offending code in “file.swift”, you can see that the same code works fine in the main Playground file.

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!