Cannot use @import from a Cocoa Touch framework

Originator:greg.cooksey
Number:rdar://20538950 Date Originated:04/14/2015
Status:Open Resolved:
Product:Xcode Product Version:6.2, 6.3, 6.4
Classification:UI / Usability Reproducible:Always
 
Summary:
I am not able to use @import to import the Foundation framework in a header file in my Cocoa Touch framework. If I use #import instead, Xcode gives me a warning that it is treating it as a module @import and offers to correct the line to a @import line instead. If I let it correct the line, my project fails to build.

Steps to Reproduce:
1. Create an Xcode project with an app target
2. Ensure that the project enables Objective-C modules
3. Add a Cocoa Touch framework target that is embedded in the app
4. Create an Objective-C source file pair in the framework
5. Edit the header file to @import Foundation
6. Build the app target

Expected Results:
App builds successfully

Actual Results:
App fails to build, claiming that modules are not enabled.

Version:
Xcode 6.4 (6E7)

Notes:


Configuration:
Xcode 6.2, 6.3, or 6.4 beta. Running on OS X 10.10.3. Targeting "iOS Device"

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!