Invalid IBInspectables should cause build warning / error

Originator:keithbsmiley
Number:rdar://33584082 Date Originated:27-Jul-2017 22:04
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9 beta 4
Classification:UI/Usability Reproducible:Always
 
Summary:
Currently if you attempt to make an IBInspectable with a type that isn't supported, you can successfully compile your projects with no errors at build time or runtime (unless you actually attempt to use the field). It would be nice if Xcode warned you so that you could only create IBInspectables of types that are supported.

Steps to Reproduce:
1. Create a new project
2. Add an IBInspectable of type UIFont
3. Build the project

Expected Results:
At build time there is a warning / error because UIFont is not currently a valid IBInspectable (rdar://problem/33583836)

Actual Results:
You can build and everything appears to be valid.

Version:
Xcode 9 beta 4

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!