URLSessionConfiguration default initializer returns a broken object

Originator:brian.king
Number:rdar://30517777 Date Originated:
Status: Resolved:
Product:iOS + SDK Product Version:Xcode 8.2.1 [8C1002]
Classification: Reproducible:Yes
 
Area:
Foundation

Summary:
URLSessionConfiguration() returns an object that is broken and crashes unrecognized selector if `protocolClasses` is accessed. It also crashes when used in a URL Session with: -[NSURLSessionConfiguration disposition]: unrecognized selector sent to instance 0x7fccf5508700

The constructor should work as the default constructor or not be available.

Steps to Reproduce:
Try to use a URLSessionConfiguration returned from `URLSessionConfiguration()`


Expected Results:
It should A) Not be available and not compile, or B) work the same as `URLSessionConfiguration.default`.


Actual Results:
The crash above.

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!