'archivedData(withRootObject:)' is not available on macOS 10.10 with Xcode 10.2

Originator:sereja.butenko
Number:rdar://49262697 Date Originated:
Status:created Resolved:
Product:macOS Product Version:
Classification: Reproducible:always
 
Area:
Foundation

Summary:
Xcode 10.2 says "'archivedDataWithRootObject:' is only available on macOS 10.11 or newer", but it was working on Xcode 10.1 and the method is accessible on macOS 10.10. 

Steps to Reproduce:
- call in swift NSKeyedArchiver.archivedData(withRootObject: "any")

Expected Results:
- The code is compiled ok

Actual Results:
- The build is failed with error: 'archivedData(withRootObject:)' is only available on OS X 10.11 or newer

Version/Build:
- macOS 10.14.4
- Xcode 10.2

Test project is attached and includes:
- failing code
- objective-c wrapper with hotfix

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!