Creating a Cocoa Subclass with Swift creates unbuildable files
| Originator: | ekurutepe | ||
| Number: | rdar://17173592 | Date Originated: | 05.06.2014 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 6.0 |
| Classification: | Reproducible: | Always |
Using the new Cocoa Class action in Xcode 6 with the Swift language option creates files that do not compile with the error: "No such module: 'Cocoa'" Steps: 1. Open an iOS project in Xcode 6 beta 2. Hit Cmd-N 3. Select new Cocoa class 4. Select language Swift 5. Subclass any of UIView, NSObject, UIViewController 6. The resulting Swift file does not compile Expected: A buildable Swift file which imports the correct modules like the Obj-C headers created in the same fashion do. Xcode Version 6.0 (6A215l)
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!