evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

Use of undeclared type 'CosmosView' #95

Closed bbookman closed 6 years ago

bbookman commented 6 years ago

xcode v9.2, swift 4 My repo https://github.com/bbookman/MVP/tree/broken

The following code gives me a compile error

@IBOutlet weak var cosmosViewFull: CosmosView!

Error: Use of undeclared type 'CosmosView'

The CosmosView is in a custom view controller "Location Detail View Controller" with custom class "LocationDetailViewController". This view controller contains two views. "Location Detail View" and inside that the "Cosmos Rating" CosmosView. Yes, CosmosView is set as custom class for "Cosmos Rating". And "Location Detail View" is just a UIView.

bbookman commented 6 years ago

never mind :( . RTFM

jlmarechal commented 6 years ago

hello, I'm having the same issue. How did you fix it?

bbookman commented 6 years ago

Wow I wish I could remember! Since I said "RTFM" .. I must have missed something in the readme instructions. My only suggestion is to very carefully read the instructions again. Sorry I can't be more help, but this was a while ago. Cosmos is working fine for me and it has been a while since I touched it.

jlmarechal commented 6 years ago

Thanks man for your the quick response. It looks like the target membership was the culprit. I unchecked the tests and UItests target and everything works

On Jun 18, 2018, at 11:59 PM, bbookman notifications@github.com wrote:

Wow I wish I could remember! Since I said "RTFM" .. I must have missed something in the readme instructions. My only suggestion is to very carefully read the instructions again. Sorry I can't be more help, but this was a while ago. Cosmos is working fine for me and it has been a while since I touched it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/evgenyneu/Cosmos/issues/95#issuecomment-398267204, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgC2MLHFc_PUmnfxmJdmJi-pVw8moWjks5t-HchgaJpZM4R5-8U.

bbookman commented 6 years ago

I'm happy you fixed it and I'm bummed I could not remember my fix :(. Hopefully others will find this thread useful.

Would you be willing to do me a big favor? I'm working on a Youtube channel for iOS development and could use some harsh critique ;) . I've got two playlists that very much need other's eyes.

One is Tutorials: https://youtu.be/gxMj7TzOqfU The other is "The Bumbling Dev": https://youtu.be/Zsxu5yFl5ok

Thank you in advance. Best of luck on your project

jlmarechal commented 6 years ago

Sure I’ll be glad to look at your playlist. I’ll get back to you

On Jun 19, 2018, at 12:03 PM, bbookman notifications@github.com wrote:

I'm happy you fixed it and I'm bummed I could not remember my fix :(. Hopefully others will find this thread useful.

Would you be willing to do me a big favor? I'm working on a Youtube channel for iOS development and could use some harsh critique ;) . I've got two playlists that very much need other's eyes.

One is Tutorials: https://youtu.be/gxMj7TzOqfU The other is "The Bumbling Dev": https://youtu.be/Zsxu5yFl5ok

Thank you in advance. Best of luck on your project

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

dev-Anup commented 5 years ago

"import Cosmos" did the trick for me.