R.swift: Use of undeclared type 'ViewController'

Created on 7 Nov 2017  路  3Comments  路  Source: mac-cain13/R.swift

Hi,

I'm trying to use this library with Xcode 9 and swift 4 and I have this error when i'l building:

Use of undeclared type 'ViewController'

I'm using cocoa pods and use 4.0.0 version:

Installing R.swift 4.0.0

Thank you.

Most helpful comment

One of your storyboards or xibs probably has a Custom Class set to "ViewController".
If your change or remove this custom class, the compile error should go away.

Solution for Swift 4+

Change the ViewController to UIViewController

All 3 comments

One of your storyboards or xibs probably has a Custom Class set to "ViewController".
If your change or remove this custom class, the compile error should go away.

Closing this question due to inactivity.
Feel free to reply if you do have further comments.

One of your storyboards or xibs probably has a Custom Class set to "ViewController".
If your change or remove this custom class, the compile error should go away.

Solution for Swift 4+

Change the ViewController to UIViewController

Was this page helpful?
0 / 5 - 0 ratings

Related issues

romk1n picture romk1n  路  6Comments

tomlokhorst picture tomlokhorst  路  3Comments

darecki picture darecki  路  4Comments

vladimirvrabelml picture vladimirvrabelml  路  7Comments

jalone87 picture jalone87  路  6Comments