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

Unable to install via CocoaPod #4

Closed
siyao1030 opened this issue May 10, 2018 · 5 comments
Closed

Unable to install via CocoaPod #4

siyao1030 opened this issue May 10, 2018 · 5 comments

Comments

@siyao1030
Copy link

I added

pod 'SwiftEntryKit', '0.1.2'

and ran pod install

I get this message every time :(

[!] Unable to find a specification for SwiftEntryKit (= 0.1.2)

@huri000
Copy link
Owner

huri000 commented May 10, 2018

Hi @siyao1030,
Thanks for the report.
What version of CocoaPods are you using? Please make sure it's 1.5.0 at least.
I'm not sure what is causing the issue, but you can try several steps to resolve it.

  1. Delete Podfile.lock
  2. Run "pod deintegrate" to remove the pods from your project.
  3. Run "pod repo update" to make sure the cache is synced.
  4. Make sure you specify in your Podfile: source 'https://github.com/CocoaPods/Specs.git' (as the installation guide instructs)
  5. Run "pod install".

Please let me know if any of those helped,

@siyao1030
Copy link
Author

Thanks for such quick response!

I realized there were some issues connecting to cocoaPod master, so running
pod repo remove master
pod setup
pod install
fixed it for me.

However, when I try to build, I get this build error from SwiftEntryKit.
screen shot 2018-05-10 at 1 39 07 pm

I am currently using XCode 9.2, Swift 4 and iOS 10+.

@huri000
Copy link
Owner

huri000 commented May 10, 2018

Glad it helped.
Please try '0.1.3' instead. The hashable thingy should be fixed now (Though it's weird the code compiled perfectly for me with it since it didn't have the hashValue computable property).

---Edit---
@siyao1030
So the reason it didn't compile for you is that you use Swift 4.0.
Swift 4.1 added a default implementation to Hashable so it worked for me without actually implementing hashValue { get }.
I've fixed it by removing Hashable for now. It should work with swift 4.0.

Let me know if it helped you :-)

@huri000
Copy link
Owner

huri000 commented May 11, 2018

I've added support for Hashable in '0.1.4' with protocol implementation. Future versions will have a queueing feature for banners and popups to present them 1 by 1. So it is a necessary boilerplate.
You can either pod install 0.1.3 or 0.1.4 with the Hashable using any version of Xcode 9.x.y.

Let me know if it fixed it for you so I can close the current thread.

@siyao1030
Copy link
Author

It works now! Thank you so much for your help :D

@huri000 huri000 mentioned this issue May 17, 2018
linuxul added a commit to linuxul/SwiftEntryKit that referenced this issue Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants