-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add ElegantEmojiPicker.podspec. #20
base: main
Are you sure you want to change the base?
Conversation
To make it possible for this lib being able to be used via CocoaPods.
Got below errors while i try to validate the podspec via:
![]() Could you suggest how to proceed with? @Finalet I understand that the source code works well with Swift Package Manager, however, to make it support CocoaPods as well, seems we should apply some adjustment to it. It would be really cool if we can make this lib installable via CocoaPods due to its wide user base. |
Using #if SWIFT_PACKAGE // SPM
let image = UIImage(named: "imade_name", in: .module, with: nil)
let bundle = Bundle.module
#else // CocoaPods
let image = UIImage(named: "imade_name")
let bundle = Bundle.main
#endif |
Also, I noticed you are using the git tag as the source:
I'm not using any tags in this repo, as distinct versions are not really important here. I think you would have to change it to pull from the
|
Seems version is required for podspec. Anyway, i have updated the podspec as you suggested. @Finalet And handover the remaining parts to you to make it finally work.
Please feel free to let me know if you want me to take any further actions on that. ![]() |
After multiple failed attempts to install cocoapods (some issues with the ruby manager on my mac), I wondered the rationality of what we are doing. SPM can be used together with CocoaPods in the same project (like here), and it's a more modern, convenient package manager. So what are the benefits of maintaining CocoaPods separately? Thank you for your help and effort! But I don't really understand why, @loongman. |
Personally, i have been searching for such a lib for quite a while by using If we can add CocoaPods support to this lib, |
To make it possible for this lib being able to be used via CocoaPods.