Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown class NVActivityIndicatorView in Interface Builder file #34

Closed
jacobarvidsson opened this issue Apr 22, 2016 · 10 comments
Closed

Comments

@jacobarvidsson
Copy link

Installing NVActivityIndicatorView using Carthage gives me this error. I've tried most things in these threads: http://stackoverflow.com/questions/33033129/xcode-7-1-swift-2-unknown-class-in-interface-builder-file, http://stackoverflow.com/questions/24924966/xcode-6-strange-bug-unknown-class-in-interface-builder-file ... Any ideas?

@jacobarvidsson
Copy link
Author

So I got it to work by doing it the manual way, copying the folder into my project, but would have loved if it worked with Carthage.

@ninjaprox
Copy link
Owner

ninjaprox commented Apr 23, 2016

@jacobarvidsson: I tried setting Module in Custom Class to NVActivityIndicatorView, it works then. Let's try it and let me know if this helps out.

@maurovz
Copy link

maurovz commented May 26, 2016

Thanks @ninjaprox that solved my issue.

@alanscarpa
Copy link

@ninjaprox Also tried that - but no luck. Still getting Unknown class in Interface Builder file. Specifically when I try and call a method on my view, such as animating = true.

@ninjaprox
Copy link
Owner

@alanscarpa Could you give steps to reproduce your issue? I tried again the above solution in new plain project and it worked well.

@rsomlette
Copy link

rsomlette commented Aug 9, 2016

I've got the same issue using CocoaPods. If I add the NVActivityIndicatorView in the storyboard I get the error whereas if I add it programatically everything works fine.
Unknown class NVActivityIndicatorView in Interface Builder file.
However creating a custom class inheriting from NVActivityIndicatorView did the trick...

@ninjaprox
Copy link
Owner

@Niphery: Have you tried #34 (comment)? This may also work.

@jlubeck
Copy link

jlubeck commented Sep 8, 2016

I was getting a crash (unknown method sent to instance) when adding the view to the storyboard and trying to start animation from my class. Setting the Module to NVActivityIndicatorView fixed it for me. Thanks @ninjaprox

@ninjaprox
Copy link
Owner

It seems this issue is already solved in Xcode 8.
Close this, reopen if need be.

@ninjaprox
Copy link
Owner

Even in Xcode 8, setting Module to NVActivityIndicatorView is needed.

screen shot 2016-10-24 at 9 58 15 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants