APUtils / KeyboardAvoidingView

Simple solution for keyboard avoiding. View that manages it's bottom constraint constant or frame height to avoid keyboard
MIT License
24 stars 6 forks source link

"KeyboardAvoidingView-Swift.h" is missing when installing the library from Cocoapods #1

Closed andriichernenko closed 6 years ago

andriichernenko commented 6 years ago

Hello!

First of all, thank you for your work! I have tested this library and it works great!

One minor problem though. When installing from Cocoapods, KeyboardAvoidingView-Swift.h is missing in KeyboardAvoidingViewLoader.m. As a result, the build fails.

Could you please fix this and update the pod?

anton-plebanovich commented 6 years ago

Hello @andriichernenko , it works for me using Cocoapods for my test project. Please check if you are using latest version in your Podfile pod "KeyboardAvoidingView", '~> 2.2' and also try to run pod update KeyboardAvoidingView.

KeyboardAvoidingView.h shouldn't be included into pods project, it's Carthage header file.

Please also check that you have use_frameworks! option in your Podfile.

andriichernenko commented 6 years ago

I updated to the latest version, 2.2.6. As for the use_frameworks!, I'd like to avoid it if possible. Since Cocoapods 1.5.0 it is possible to link Swift dependencies as static frameworks, which has benefits such as improved app launch time, etc.

Does KeyboardAvoidingView support being linked as a static library?

andriichernenko commented 6 years ago

It's actually not KeyboardAvoidingView.h that's missing, but rather KeyboardAvoidingView-Swift.h:

/Users/ac/Projects/TheProject/Pods/KeyboardAvoidingView/KeyboardAvoidingView/Classes/KeyboardAvoidingViewLoader.m:8:9: 'KeyboardAvoidingView/KeyboardAvoidingView-Swift.h' file not found

My bad, sorry for misreporting the issue.

anton-plebanovich commented 6 years ago

I'll investigate, thanks for report

anton-plebanovich commented 6 years ago

@andriichernenko Please check latest version KeyboardAvoidingView (2.2.7). It should support building into static library.

andriichernenko commented 6 years ago

@anton-plebanovich The issue has been fixed now, the project builds fine. Appreciate the quick response, thanks a lot!