vtourraine / AcknowList

Acknowledgements screen displaying a list of licenses, for example from CocoaPods and Swift Package Manager dependencies.
MIT License
798 stars 60 forks source link

Please update for Swift 5 #49

Closed OscarGorog closed 5 years ago

OscarGorog commented 5 years ago

Please update for Swift 5 support

Thanks!

vtourraine commented 5 years ago

Hello Oscar, and thank you for reaching out. Unfortunately I don’t have the latest Xcode version installed yet, so I can’t test this library with Swift 5.

If you do, feel free to open the workspace, migrate the code to Swift 5 (there’s probably very little change beyond the project settings), and send me a pull request. 🚀

OscarGorog commented 5 years ago

Hi Vincent,

I have created a pull request for this update.

Thanks!

vtourraine commented 5 years ago

Implemented with #50

larsschwegmann commented 5 years ago

@vtourraine Could you update the cocoapods spec in the cocoapods trunk repo to use v. 1.9 please? 😄

vtourraine commented 5 years ago

@larsschwegmann I’ve tried to push the update earlier this week, but apparently Swift 5 isn’t supported by CocoaPods yet. Unless I’m missing something?

larsschwegmann commented 5 years ago

@vtourraine Hmm, I've actually never submitted/updated a pod to the cocoapods trunk myself, but other pods that I use already upgraded to Swift 5 and successfully submitted their updated version. Take Moya for example (v. 13.0.0) which uses Swift 5 and depends on Xcode 10.2

What happens exactly when you try to submit it using pod trunk push? ´Do you get an Error message? I would really like to get rid of these annoying warnings in Xcode 😄

vtourraine commented 5 years ago

That’s interesting. So they must have used a new beta, or something like that. I’ll look into this as soon as I can, but in the meantime, you should be able to update your Podfile to request a specific commit, thus getting the Swift 5 version from master.

vtourraine commented 5 years ago

My bad, I misunderstood the error I was getting when trying to push to trunk. The pod tool uses xcodebuild (a.k.a. Xcode) to check the podspec file before pushing it (even with --skip-tests --skip-import-validation --allow-warnings), and like I mentioned, I don’t have the latest Xcode version with Swift 5 installed on my machine. So that's a bummer. 😞

I’m sure I’ll manage to update my machine to Mojave and Xcode 10.2 eventually, but in the meantime, I’m open to suggestions, and hopefully the trick of pointing to master from your Podfile (as mentioned previously) should help you avoid the issue.

OscarGorog commented 5 years ago

Why don’t you update your computer and Xcode? Mojave is much better than High Sierra?

vtourraine commented 5 years ago

@OkiRules That’s down to professional constraints, basically out of my control.

vtourraine commented 5 years ago

@OkiRules Good news: the Swift 5 version is finally available from CocoaPods (v1.9) 🎉

Sorry it took so long.