Getting 'NSInvalidArgumentException' when setting `string` on `UIPasteboard`

Originator:aleksander.grzyb
Number:rdar://33038561 Date Originated:28-Jun-2017 13:49
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 10.3 (14E269)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
When setting `nil` to `string` property on `UIPasteboard` there is a exception thrown although `string` is optional.

Steps to Reproduce:
Set `nil` to `string` property on `UIPasteboard`.

Expected Results:
Compiler error, because `string` is not optional.

Actual Results:
Exception thrown (crash on runtime).

Version:
iOS 10.3 (14E269)

Notes:

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!