Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

Unknown class - empty module in Xcode - will not build #89

Closed decoyfox closed 8 years ago

decoyfox commented 8 years ago

I keep getting this error in a simple project I made to test this code. I followed the instructions exactly:

I noticed that all 3 items (tab bar controller, tab bar item, and object) can find the RAM"XYZ" class, but the "Module" field is set to "None" – which doesn't seem right. But I don't know how to make Xcode find the module. Help!

2016-03-13 07:32:51.167 test-tab-bar[1465:59725] Unknown class RAMAnimatedTabBarItem in Interface Builder file. 2016-03-13 07:32:51.170 test-tab-bar[1465:59725] Unknown class RAMBounceAnimation in Interface Builder file. 2016-03-13 07:32:51.171 test-tab-bar[1465:59725] Unknown class RAMAnimatedTabBarItem in Interface Builder file. 2016-03-13 07:32:51.172 test-tab-bar[1465:59725] Unknown class RAMBounceAnimation in Interface Builder file. 2016-03-13 07:32:51.172 test-tab-bar[1465:59725] Unknown class RAMAnimatedTabBarController in Interface Builder file. 2016-03-13 07:32:51.185 test-tab-bar[1465:59725] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITabBarItem 0x79152570> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animation.'

santiagosantucho commented 8 years ago

I have almost the same problem, but it is in run time: Unknown class RAMAnimatedTabBarController in Interface Builder file.

Do you fix it?.

decoyfox commented 8 years ago

No I haven't. I gave up on using this. I got the demo to work on my phone, so I don't know why I can't. Oh well...

santiagosantucho commented 8 years ago

The demo works but my project doesn't. I gave up too.

hologerry commented 8 years ago

Have you installed this correctly:add RAMAnimatedTabBarController folder or use CocoaPods?

decoyfox commented 8 years ago

Hi Gerry! Yes I have followed the instructions exactly. I created a simple demo project and am receiving this error. The sample project does indeed work for me though. So, I'm not sure where I'm going wrong. I'd prefer to not use cocoa pods.

-max maxtannone.com

On May 11, 2016, at 1:06 AM, Gerry Gao notifications@github.com wrote:

Have you installed this correctly:add RAMAnimatedTabBarController folder or use CocoaPods?

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub

hologerry commented 8 years ago

Did you really add the RAMAnimatedTabBarControlller folder into your project like this?

screen shot 2016-05-11 at 21 32 39

I created a test project and didn't get the issue... Can you send me some screen shot?

decoyfox commented 8 years ago

tab-bar-test-may-2016-1.zip

Can you run my test project? I don't get what I'm doing wrong here. I followed the instructions...

decoyfox commented 8 years ago

In the demo video, when they connect the animation outlet of the tab bar item to the NSObject in the document outline, you can see gray text fill in the "module" box on the right. I never have any gray text. Not sure why, but maybe it is related to the issue?

screen shot 2016-05-11 at 10 41 34 am

(notice the gray text in this image?)

and in mine, it is blank!

decoyfox commented 8 years ago

Again, my demo project crashes as soon as I try to run it:

2016-05-11 10:45:34.921 test-tab-bar-may-2016-1[66981:13312165] Unknown class _TtC23test-tab-bar-may-2016-121RAMAnimatedTabBarItem in Interface Builder file. 2016-05-11 10:45:34.924 test-tab-bar-may-2016-1[66981:13312165] Unknown class RAMFlipTopTransitionItemAnimations in Interface Builder file. 2016-05-11 10:45:34.924 test-tab-bar-may-2016-1[66981:13312165] Unknown class _TtC23test-tab-bar-may-2016-121RAMAnimatedTabBarItem in Interface Builder file. 2016-05-11 10:45:34.925 test-tab-bar-may-2016-1[66981:13312165] Unknown class RAMBounceAnimation in Interface Builder file. 2016-05-11 10:45:34.925 test-tab-bar-may-2016-1[66981:13312165] Unknown class RAMAnimatedTabBarController in Interface Builder file. 2016-05-11 10:45:34.931 test-tab-bar-may-2016-1[66981:13312165] *\ Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITabBarItem 0x7fb609dac9d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animation.'

hologerry commented 8 years ago

If you add the folder by this way

screen shot 2016-05-11 at 22 46 47

It's wrong! Please add it by checking the "Create groups" and "Copy items if needed"

screen shot 2016-05-11 at 22 46 59

I think i have solved this issue. 😊

hologerry commented 8 years ago

You can delete the folder in your project folder

screen shot 2016-05-11 at 23 03 35

and readd it: drag it to your Xcode project

decoyfox commented 8 years ago

Thank you so much. I was actually dragging the folder into my Xcode project, but for some reason I had "create folder references" selected instead of "create groups". Changing it to "create groups" fixed the problem.

You da man!

atalayasa commented 6 years ago

Hello I am trying to add it manually but when I try to import RAMAnimatedTabBarController it gives me an error No Such Module. I can not install it with cocoa pods because of some company restrictions how can I import it manually? Thanks.

Keatooon commented 5 years ago

I'm using cocoapods and I'm facing the same issue of "Unknown class RAMAnimatedTabBarController in Interface Builder file." as well. How to resolve it?