iOS 8's localized descriptions for NSURLErrorDomain errors suck.
| Originator: | tangphillip | ||
| Number: | rdar://18858461 | Date Originated: | 03-Nov-2014 05:26 PM |
| Status: | Duplicate of 18365111 (Open) | Resolved: | 03-Nov-2014 05:26 PM |
| Product: | iOS SDK | Product Version: | iOS 8.1 (12B411) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: On iOS 7 devices, if you call -localizedDescription on an NSURLErrorDomain error, you get a human-readable description like: "The Internet connection appears to be offline." But on iOS 8 devices, you get useless error messages like: "The operation couldn't be completed. (NSURLErrorDomain error -1009.)" Steps to Reproduce: 1. Put your device in airplane mode. 2. Make a request with NSURLConnection or NSURLSession. 3. Call -localizedDescription on the error message that comes back. Expected Results: I expect a localized, human-readable error message. Actual Results: A generic, human-unfriendly error message. Version: iOS 8.1 (12B411) Notes: This made me sad enough that I dug through path/to/iPhoneSimulator7.1.sdk/System/Library/Frameworks/CFNetwork.framework/*.lproj/Localizable.strings to get the old strings back. Almost certainly a dupe of http://openradar.appspot.com/18365111 . Configuration: All devices running iOS 8 and above. 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!