Geodesy
Geodesy copied to clipboard
Compiler errors when trying to build with Swift 5
Hello. I use Cocoapods to install your library. Very useful, thanks! I got some issues: What I did?
- install framework using
pod Geodesy - tried to build with Swift 5
What went wrong?
- I get compiler errors in Region.swift file: 'characters' is unavailable: Please use String directly
I saw that a commit which should fix exactly that, but the build for that commit has failed, so it's possible that commit was ignored and did not get into a master branch. Another options is that the .podspec version has to be also bumped again.
Really enjoying your work, but I have to manually use the files because of those errors. That would wonderful if I could just use the pod directly.
Thanks for the pr. I've invited you to be a contributor.
I've released a swift 5 version. 1.2.0 and updated the .podspec. I believe this should fix your issue. Please let me know.
Hi Todd! Thanks for being so prominent :)
Things but worse, unfortunately. After I run pod update the versos of the pod is still 1.1.1 and more over the files Geohash.swift and Geodesy.xcconfig are missing, thus I still have my project not compilable with this pod installed.
Have you published the cocoapod? Could my pull requests be a case of such errors?
Seems like compile time errors are resolved with Xcode restart and clean build. But the problem with cocoa pod version being 1.1.1 instead of 1.2.0 still remains.
I ran into this problem and it appears that the 1.2.0 .podspec isn't in the Cocoapods spec repo. To get around it, I added this to my Podfile:
pod 'Geodesy',
:git => 'https://github.com/proxpero/Geodesy.git',
:tag => '1.2.0'
That installed the correct version but the output from pod install still said it installed 1.1.1.
Yes the podspec needs to be pushed to the cocoapods trunk repo.
Also, the .swift-version file should be updated to say 5.0