hackiftekhar/IQKeyboardManager

Please add your code to cocoapods

nathan-alden-sr opened this issue · 17 comments

It would be handy if this library were available as a pod.

Agree! Please add it to Cocoapods spec.

I tried it. But I was unable to add it to cocoapods spec. If you can help me with this please let me know the suitable timings.

Go here: http://cocoapods.org/

Then, click on the massive CREATE A POD link. It's pretty easy. :)

Thanks for the great suggestion. Here is the cocoapod link:-
pod 'IQKeyboardManager', '~>2.5.0'

Regards
Iftekhar

Why 2.5.0 and not 1.0.0?

I released v1.0 basic functionality previously. Whenever I add a new functionality on this I increased a version number i.e. 1.0->2.0. Whenever I fix a bug I change the version number from 1.0->1.1.

I am trying to run this, but on pod install, I get

Analyzing dependencies
[!] Unable to find a specification for IQKeyboardManager~>2.5.0

You can be sure to always get the last version by doing :
pod 'IQKeyboardManager'
or if you want to get the last version there is at the moment :
pod 'IQKeyboardManager', '~> 3.2.0.3'

Hey, thanks, but I still get issues with this. This is what my podfile now is:

source 'https://github.com/hackiftekhar/IQKeyboardManager.git'

pod 'IQKeyboardManager'

xcodeproj '../myProject.xcodeproj'

without the version constraint, I get this, instead of the previous issue:

Analyzing dependencies
[!] An unexpected version directory Categories was encountered for the /Users/myUser/.cocoapods/repos/hackiftekhar/IQKeyboardManager Pod in the IQKeyboardManager repository.

Is there something not right with what is in the podfile? I haven't done this before

Thanks!

I don't think you have to specify IQKeyboardManager as source, try this and tell me if it works :

source 'https://github.com/CocoaPods/Specs.git'
pod 'IQKeyboardManager'

Beatiful, thank you so much, works like a charm now ;)

Also, thanks to hackiftekhar for this great library, and cocoapods also awesome. super ;)

Cheers !!!

Could you please confirm you're getting this error by creating new project and install via cocoapods. FYI, this is cocoapods issue and not from the library.

3.3.7 is the last iOS 7 supported version.
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/IQKeyboardManager.framework/IQKeyboardManager) for architecture arm64

@hackiftekhar have any solution for work around?

@youbinbin go to Build Phrases -> Link Binary With Libraries then add IQKeyboardManager.framework. Then it's worked.