UIStoryboard ‘init(name:bundle)’ issue in RELEASE config

I’m seeing following error when trying to build the app in RELEASE configuration. It seems all working fine when I build the same app in DEBUG mode.

UIStoryboard ‘init(name:bundle)’ is unavailable: Use object construction’ UIStoryboard(name:bundle)’ ‘init(name:bundle)’ has been explicitly marked unavailable here.

I’m sure the same code was running fine few days back (without any error) in RELEASE config.

Here is the line which is throwing error:

let storyboard = UIStoryboard(name: “Main”, bundle: Bundle.main)

I’m compiling this in Xcode Version 8.3.3 (8E3004b).

Thank you.

Powered by WPeMatico


You may also like...

Comments are closed.