CommonCrypto lacks module definiton

Originator:Zachary
Number:rdar://18256932 Date Originated:6 Sep 2014
Status:Open Resolved:false
Product:Developer Tools Product Version:Xcode 6.0 DP7 (6A280n), OS X 10.10 (14A343f)
Classification:Other Bug Reproducible:Always
 
Summary:
Every header in /usr/include and /System/Library/Frameworks should have a parent module available to include. CommonCrypto, among others, does not.

Steps to Reproduce:
1. Enable modules for an Xcode project.
2. Active "-Wauto-import" to migrate to @import modules.
3. Be unable to @import CommonCrypto;

Alternatively:

1. Have the desire to use CommonCrypto in Swift.
2. Be sad.

Expected Results:
Obj-C: "@import CommonCrypto;" works as expected.
Swift: "import CommonCrypto" works as expected.

Actual Results:
Obj-C: "#import <CommonCrypto/CommonCrypto.h>" must be used instead.
Swift: Cannot import CommonCrypto without Objective-C bridging.

Configuration:
Does not occur in a legacy project without modules enabled. Occurs in every Swift project.

Duplicates

Number Status Originator Product Title
rdar://24120863 Duplicate/18256932 wesdegrootprojects iOS SDK Missing CommonCrypto
rdar://32678129 Duplicate/18256932 zach Developer Tools DYLD USAGE: Loading public but unavailable routines from CommonCrypto in 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!