URLSessionTaskMetrics Linker Error on watchOS 3.0+

Originator:christian.noon
Number:rdar://36082113 Date Originated:December 15 2017, 2:34 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.2
Classification:Bug Reproducible:Always
 
Summary:
We're seeing linker errors with the URLSessionTaskMetrics API on watchOS 3.0+ in Alamofire. I wanted to make sure we filed a radar since the APIs are available to the compiler, but are failing to link the symbols. I've created a sample project on GitHub.

- https://github.com/Alamofire/Rdar-URLSessionTaskMetrics

Steps to Reproduce:
1) Download the sample app
2) Compile the `Alamofire iOS` scheme with Xcode 9.2 and observe that it compiles successfully
3) Compile the `Alamofire watchOS` scheme with Xcode 9.2 and observe that it fails to link because it is missing the NSURLSessionTaskMetrics symbol

Expected Results:
That the `Alamofire watchOS` scheme would compile.

Actual Results:
That the `Alamofire watchOS` scheme fails to link.

Version/Build:
Xcode 9.2 (9C40b)

Configuration:
Alamofire watchOS

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!