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

Doesn't working at swift 5 #329

Open
Pirokar opened this issue Apr 7, 2019 · 14 comments
Open

Doesn't working at swift 5 #329

Pirokar opened this issue Apr 7, 2019 · 14 comments

Comments

@Pirokar
Copy link

Pirokar commented Apr 7, 2019

No description provided.

@pigpox
Copy link

pigpox commented Apr 10, 2019

same issue here

@wxforgb
Copy link

wxforgb commented Apr 11, 2019

same issue

@NSDAPP
Copy link

NSDAPP commented Apr 16, 2019

Works fine here. Just had to unlock the files and let xcode auto-fix the errors.

@Pirokar
Copy link
Author

Pirokar commented Apr 16, 2019

Do you really mean that it's a good solution? What about commits to git? Or you will say, that we should to use flash card instead?))

@NSDAPP
Copy link

NSDAPP commented Apr 16, 2019

The complaints I was getting from xcode, where just due to re-namings. It has not given me any issue so far. commits have also worked fine. It might not be the correct fix, but it works for now and allows me to continue my work :-)
If i find any issues with this I will let you know

@ccascio
Copy link

ccascio commented Apr 19, 2019

Auto-fix didn't work for me; in the file Misc.swift, I had to comment this line of code:
public var length: Int { return self.characters.count }
replacing the .length with the swift OoTB function .count
As well as fixing the line 76:
switch (hex.characters.count) {
simply with
switch hex.count {

@pigpox
Copy link

pigpox commented Apr 19, 2019

OoTB

how did you fix the .length ? example pls...

@pigpox
Copy link

pigpox commented Apr 19, 2019

hmm....var length: Int { return self.count }

@Surferdude667
Copy link

@MengTo Would be incredibly awesome with a swift 5 update soon! :)

@arensade
Copy link

just change pod lib swift version to 4.2.

@MussaCharles
Copy link

MussaCharles commented Jun 21, 2019

I forked the project and migrated to Swift 5 on my repo, I will make a pull request soon. Meanwhile, you can get Swift 5 version by pointing to my repo like so: -
pod 'Spring', :git => 'https://github.com/MussaCharles/Spring.git'

@AmirHossein1372
Copy link

AmirHossein1372 commented Jul 11, 2019

This guide worked:
Swift version

@fatihyildizhan
Copy link

I try to use swift 5 branch pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift5' but when I run the project it crashes immediately.

@imbaTao
Copy link

imbaTao commented Jan 15, 2021

use_frameworks!
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift5'

https://github.com/MengTo/Spring/tree/swift5

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