Swift cannot access internal-only framework pieces

Originator:jconverse
Number:rdar://18405084 Date Originated:9/20/2014
Status:Open Resolved:
Product:XCode 6 Product Version:XCode 6 GM
Classification:Bug Reproducible:Always
 
Summary:
A swift file in an iOS 8 Framework target can only access Objective-C types which are included in the public umbrella file for the framework.

This is problematic if the swift code you are writing needs to interact with internal-only classes/functions/methods, as they would need to become part of the public API for the framework.

This is exacerbated by the fact that bridging headers are not allowed in framework targets.

Steps to Reproduce:
See attached project file.

Launch it using the XCode 6 GM, and build. Compilation will fail. Open the file 'LookHere.swift' and follow the directions there.

Expected Results:
There to be a way of accessing internal-only code from a swift source file.

Actual Results:
Compilation fails.

Version:
XCode 6 GM

Notes:


Configuration:


Attachments:
'SwiftFrameworkPrivates.zip' was successfully uploaded.

Comments

Duped to the following radar:

17697942


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!