Xcode6 crash with Swift code
Originator: | fabienpenso | ||
Number: | rdar://17316238 | Date Originated: | |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | |
Classification: | Reproducible: |
Summary: The following code is crashing xcode every single time. Steps to Reproduce: 1. Install Xcode6-beta 2. Create a new playground file 3. Enter the following code: import Cocoa var date_string = "2014/06/14 20:05:13 +0000" var rfc3339DateFormatter = NSDateFormatter() rfc3339DateFormatter.locale = NSLocale(localeIdentifier: "en_US_POSIX") rfc3339DateFormatter.dateFormat = "yyyy/MM/dd HH:mm:ss Z" rfc3339DateFormatter.timeZone = NSTimeZone(forSecondsFromGMT: 0) // Working rfc3339DateFormatter.dateFromString(date_string) var options = Dictionary<String, AnyObject>() options["send_at"] = date_string // Working var send_at = options["send_at"] as String! rfc3339DateFormatter.dateFromString(send_at) // Uncomment this for crashing xcode // rfc3339DateFormatter.dateFromString(options["send_at"] as String!) Expected Results: Actual Results: Version: Xcode 6.0 (6A215l), OSX 10.9.3. Notes: Configuration: Attachments:
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!