UIStoryboard can't instantiate view controller referenced on it by class name when it's a specialization of a generic parent class

Originator:info
Number:rdar://22177559 Date Originated:06-Aug-2015 11:24 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift - Xcode 7 Beta 5
Classification:UI/Usability Reproducible:Always
 
This is a duplicate of rdar://22177377

Steps to Reproduce:
(Check out sample project)
Create generic class that inherits from UIVC:

class GenericViewController<GenericType>: UIViewController {
}

And a subclass that specializes it:

class SpecificViewController: GenericViewController<String> {

}

Reference SpecificViewController (which is not generic anymore) as the type of a controller in a storyboard.

Expected Results:
View Controller class is instantiated.

Actual Results:
I see “ Unknown class _TtC10ModuleName21ViewControllerClass in Interface Builder file.” in the console, and a plain UIViewController gets instantiated instead.

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!