Swift compiler segfaults when attempting to build this .xcodeproj involving UIKit and Foundation extensions
| Originator: | alec.stanford.larson | ||
| Number: | rdar://17315806 | Date Originated: | 14-Jun-2014 12:07 PM |
| Status: | Open | Resolved: | Not yet resolved |
| Product: | Developer Tools | Product Version: | OSX 10.9.3 (13D65) & Xcode 6.0 (6A215l) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: The attached project cannot be built because an extension of UIView (aka UIViewExtension.swift) accesses computed property "view.layer.size" defined by an extension of CALayer from another file (aka CALayerExtension.swift) Steps to Reproduce: 1. Unpack the attached .rar file 2. Open "SwiftCompilerSegFaultExample.xcodeproj" 3. Attempt to build the project with CMD+B shortcut Expected Results: Successful build Actual Results: Swift compiler segmentation fault While emitting IR SIL function @_TFC28SwiftCompilerSegFaultExample11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqCSo12NSDictionary__Sb for 'application' at <relative path>/SwiftCompilerSegFaultExample/SwiftCompilerSegFaultExample/AppDelegate.swift:9:3 <unknown>:0: error: unable to execute command: Segmentation fault: 11 <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation) Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254 Version: OSX 10.9.3 (13D65) Xcode 6.0 (6A215l) PS: Why isn't bug reporting built into Xcode so I don't have to manually input this information? :) Notes: Configuration: Processor: 2.4 GHz Intel Core i5 Memory: 4 GB 1600 MHz DDR3 Macbook Pro, Retina, 13-inch, Late 2013 Attachments: 'SwiftCompilerSegFaultExample.rar' was successfully uploaded.
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!
Link to SwiftCompilerSegFaultExample.rar
http://www.mediafire.com/download/9ic636luugmo6jd/SwiftCompilerSegFaultExample.rar